| 1 |
// Copyright (C) 2016 The Qt Company Ltd. |
| 2 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 |
|
| 4 |
|
| 5 |
#include <QTest> |
| 6 |
|
| 7 |
#include <qfile.h> |
| 8 |
#include <QPainterPathStroker> |
| 9 |
#include <qmath.h> |
| 10 |
|
| 11 |
class tst_QPainterPathStroker : public QObject |
| 12 |
{ |
| 13 |
Q_OBJECT |
| 14 |
|
| 15 |
public: |
| 16 |
|
| 17 |
private slots: |
| 18 |
void strokeEmptyPath(); |
| 19 |
}; |
| 20 |
|
| 21 |
void tst_QPainterPathStroker::strokeEmptyPath() |
| 22 |
{ |
| 23 |
QPainterPath path; |
| 24 |
path.moveTo(10, 10); |
| 25 |
path.lineTo(10, 10); |
| 26 |
QPainterPathStroker stroker; |
| 27 |
QCOMPARE(stroker.createStroke(path), path); |
| 28 |
} |
| 29 |
|
| 30 |
QTEST_APPLESS_MAIN(tst_QPainterPathStroker) |
| 31 |
|
| 32 |
#include "tst_qpainterpathstroker.moc" |