Fix test case
authorLars Knoll <lars.knoll@theqtcompany.com>
Mon, 10 Aug 2015 12:49:07 +0000 (14:49 +0200)
committerSimon Hausmann <simon.hausmann@theqtcompany.com>
Tue, 18 Aug 2015 20:27:17 +0000 (20:27 +0000)
After the latest changes to the VMEMO, JS declared properties
will not be available after the engine is deleted.

Change-Id: Ifc6034bd0dff18d26863ca9bcf7a19e1c7d68ff6
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp

index b524b30e1ac3c6f36d8856bd59bd42a93762e09d..133fadb69ad89f88f1c34a27f27b69970fc54ca9 100644 (file)
@@ -5709,9 +5709,10 @@ void tst_qqmlecmascript::deletedEngine()
 
     delete engine;
 
-    QCOMPARE(object->property("a").toInt(), 117);
+    QCOMPARE(object->property("a").toInt(), 0);
     object->setProperty("b", QVariant(10));
-    QCOMPARE(object->property("a").toInt(), 117);
+    object->setProperty("b", QVariant());
+    QCOMPARE(object->property("a").toInt(), 0);
 
     delete object;
 }