diff options
author | Sergio Ahumada <sergio.ahumada@digia.com> | 2013-09-05 15:31:08 +0200 |
---|---|---|
committer | Sergio Ahumada <sergio.ahumada@digia.com> | 2013-09-06 10:11:04 +0200 |
commit | af44559780765c7121a49c2e0764cf24e740312d (patch) | |
tree | a4f2f50ddfe969f33a4d4accd392523c6809fd5a /tests/auto/quick/qquickwindow | |
parent | 8784a4a46ea1357bde546c9a1c88bd060e863f30 (diff) | |
parent | b30d7c9ee8fbc3a395c74b618f2ab176ae1e7f7e (diff) |
Merge branch 'stable' into dev
Conflicts:
src/qml/debugger/qv8debugservice.cpp
src/qml/qml/v8/qv8engine.cpp
tests/auto/quick/qquickitem/qquickitem.pro
Change-Id: Ic4a1dcdd8b8a84155d2f2abefdf1da5c3a56af31
Diffstat (limited to 'tests/auto/quick/qquickwindow')
-rw-r--r-- | tests/auto/quick/qquickwindow/tst_qquickwindow.cpp | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp b/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp index 17999ed588..55f91db603 100644 --- a/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp +++ b/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp @@ -911,15 +911,15 @@ void tst_qquickwindow::qmlCreation() QQmlEngine engine; QQmlComponent component(&engine); component.loadUrl(testFileUrl("window.qml")); - QObject* created = component.create(); + QObject *created = component.create(); QScopedPointer<QObject> cleanup(created); QVERIFY(created); - QQuickWindow* window = qobject_cast<QQuickWindow*>(created); + QQuickWindow *window = qobject_cast<QQuickWindow*>(created); QVERIFY(window); QCOMPARE(window->color(), QColor(Qt::green)); - QQuickItem* item = window->findChild<QQuickItem*>("item"); + QQuickItem *item = window->findChild<QQuickItem*>("item"); QVERIFY(item); QCOMPARE(item->window(), window); } @@ -1000,10 +1000,10 @@ void tst_qquickwindow::animationsWhileHidden() QQmlEngine engine; QQmlComponent component(&engine); component.loadUrl(testFileUrl("AnimationsWhileHidden.qml")); - QObject* created = component.create(); + QObject *created = component.create(); QScopedPointer<QObject> cleanup(created); - QQuickWindow* window = qobject_cast<QQuickWindow*>(created); + QQuickWindow *window = qobject_cast<QQuickWindow*>(created); QVERIFY(window); QVERIFY(window->isVisible()); @@ -1022,10 +1022,10 @@ void tst_qquickwindow::headless() QQmlEngine engine; QQmlComponent component(&engine); component.loadUrl(testFileUrl("Headless.qml")); - QObject* created = component.create(); + QObject *created = component.create(); QScopedPointer<QObject> cleanup(created); - QQuickWindow* window = qobject_cast<QQuickWindow*>(created); + QQuickWindow *window = qobject_cast<QQuickWindow*>(created); window->setPersistentOpenGLContext(false); window->setPersistentSceneGraph(false); QVERIFY(window); @@ -1120,13 +1120,13 @@ void tst_qquickwindow::focusObject() void tst_qquickwindow::ignoreUnhandledMouseEvents() { - QQuickWindow* window = new QQuickWindow; + QQuickWindow *window = new QQuickWindow; QScopedPointer<QQuickWindow> cleanup(window); window->resize(100, 100); window->show(); QVERIFY(QTest::qWaitForWindowExposed(window)); - QQuickItem* item = new QQuickItem; + QQuickItem *item = new QQuickItem; item->setSize(QSizeF(100, 100)); item->setParentItem(window->contentItem()); @@ -1163,10 +1163,10 @@ void tst_qquickwindow::ownershipRootItem() QQmlEngine engine; QQmlComponent component(&engine); component.loadUrl(testFileUrl("ownershipRootItem.qml")); - QObject* created = component.create(); + QObject *created = component.create(); QScopedPointer<QObject> cleanup(created); - QQuickWindow* window = qobject_cast<QQuickWindow*>(created); + QQuickWindow *window = qobject_cast<QQuickWindow*>(created); QVERIFY(window); window->show(); QVERIFY(QTest::qWaitForWindowExposed(window)); @@ -1426,7 +1426,7 @@ void tst_qquickwindow::requestActivate() QQmlEngine engine; QQmlComponent component(&engine); component.loadUrl(testFileUrl("active.qml")); - QQuickWindow* window1 = qobject_cast<QQuickWindow *>(component.create()); + QQuickWindow *window1 = qobject_cast<QQuickWindow *>(component.create()); QVERIFY(window1); QWindowList windows = QGuiApplication::topLevelWindows(); @@ -1475,7 +1475,7 @@ void tst_qquickwindow::blockClosing() QQmlEngine engine; QQmlComponent component(&engine); component.loadUrl(testFileUrl("ucantclosethis.qml")); - QQuickWindow* window = qobject_cast<QQuickWindow *>(component.create()); + QQuickWindow *window = qobject_cast<QQuickWindow *>(component.create()); QVERIFY(window); window->show(); QTest::qWaitForWindowExposed(window); @@ -1495,15 +1495,14 @@ void tst_qquickwindow::crashWhenHoverItemDeleted() QQmlEngine engine; QQmlComponent component(&engine); component.loadUrl(testFileUrl("hoverCrash.qml")); - QQuickWindow* window = qobject_cast<QQuickWindow *>(component.create()); + QQuickWindow *window = qobject_cast<QQuickWindow *>(component.create()); QVERIFY(window); window->show(); QTest::qWaitForWindowExposed(window); // Simulate a move from the first rectangle to the second. Crash will happen in here // Moving instantaneously from (0, 99) to (0, 102) does not cause the crash - for (int i = 99; i < 102; ++i) - { + for (int i = 99; i < 102; ++i) { QTest::mouseMove(window, QPoint(0, i)); } } |