Skip to content

Commit

Permalink
Stabilize tests
Browse files Browse the repository at this point in the history
Change-Id: Iafaf645787dfecfbe044dd87dbfdbb884a75040b
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
  • Loading branch information
Gunnar Sletta authored and Qt by Nokia committed Feb 1, 2012
1 parent b5db468 commit e7224de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/auto/qtquick2/qquickcanvas/tst_qquickcanvas.cpp
Expand Up @@ -567,6 +567,8 @@ void tst_qquickcanvas::grab()
canvas.resize(250, 250);
canvas.show();

QTest::qWaitForWindowShown(&canvas);

QImage content = canvas.grabFrameBuffer();
QCOMPARE(content.width(), canvas.width());
QCOMPARE(content.height(), canvas.height());
Expand Down Expand Up @@ -667,7 +669,7 @@ void tst_qquickcanvas::headless()

QCOMPARE(originalContent, newContent);


delete canvas;
}

void tst_qquickcanvas::focusObject()
Expand Down

0 comments on commit e7224de

Please sign in to comment.