diff options
author | Charles Yin <charles.yin@nokia.com> | 2011-10-11 16:23:50 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-12 02:36:56 +0200 |
commit | f1972c0cbc987a28b0bc3dce0ee03c6f4b3bad85 (patch) | |
tree | 6bd1bfa5286e1668bcb2a29f96bb85ba3149f281 /tests | |
parent | ae623976b8920117e751448e2a65dab174731476 (diff) |
fix several canvasitem bugs
Change-Id: I6a6d97253fe66184736f8ac089e97aa114f0e83a
Reviewed-on: http://codereview.qt-project.org/6405
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Charles Yin <charles.yin@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative/qsgcanvasitem/data/tst_canvas.qml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/auto/declarative/qsgcanvasitem/data/tst_canvas.qml b/tests/auto/declarative/qsgcanvasitem/data/tst_canvas.qml index db61fcec80..70bedb2131 100644 --- a/tests/auto/declarative/qsgcanvasitem/data/tst_canvas.qml +++ b/tests/auto/declarative/qsgcanvasitem/data/tst_canvas.qml @@ -222,10 +222,11 @@ Rectangle { verify(c); c.renderTarget = Canvas.Image; - - c.requestPaint(); - wait(100); + c.renderInThread = true; + var ctx = c.getContext(); + ctx.fillRect(0, 0, c.width, c.height); c.toDataURL(); + wait(100); compare(c.paintedCount, 1); compare(c.paintCount, 1); |