Fix test fails related to QTBUG-22237
authorCharles Yin <charles.yin@nokia.com>
Thu, 20 Oct 2011 05:28:04 +0000 (15:28 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 21 Oct 2011 06:47:29 +0000 (08:47 +0200)
Task-number:QTBUG-22237
Change-Id: I933c2cbd9218c8a5403712aa9dafe4221791ce0d
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
tests/auto/declarative/qsgcanvasitem/data/tst_state.qml

index f0040ce..8042cf6 100644 (file)
@@ -4,6 +4,7 @@ import "testhelper.js" as Helper
 Canvas {
    id:canvas; width:100;height:50; renderTarget: Canvas.Image
    TestCase {
+       id:testCase
        name: "state"; when: windowShown
        function test_bitmap() {
            var ctx = canvas.getContext('2d');
@@ -295,7 +296,7 @@ Canvas {
            }
            for (var i = limit-1; i > 0; --i)
            {
-               compare(ctx.lineWidth, i);
+               testCase.compare(ctx.lineWidth, i); //strange javascript error here
                ctx.restore();
            }