From 2d119a137f1bc0c8b1113cd6c58413a1b89a4c1c Mon Sep 17 00:00:00 2001 From: Charles Yin Date: Thu, 20 Oct 2011 15:28:04 +1000 Subject: [PATCH] Fix test fails related to QTBUG-22237 Task-number:QTBUG-22237 Change-Id: I933c2cbd9218c8a5403712aa9dafe4221791ce0d Reviewed-by: Michael Brasser --- tests/auto/declarative/qsgcanvasitem/data/tst_state.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/auto/declarative/qsgcanvasitem/data/tst_state.qml b/tests/auto/declarative/qsgcanvasitem/data/tst_state.qml index f0040ce..8042cf6 100644 --- a/tests/auto/declarative/qsgcanvasitem/data/tst_state.qml +++ b/tests/auto/declarative/qsgcanvasitem/data/tst_state.qml @@ -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(); } -- 2.7.4