Remove debugging output
authorAaron Kennedy <aaron.kennedy@nokia.com>
Thu, 1 Dec 2011 13:31:32 +0000 (13:31 +0000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 1 Dec 2011 14:05:14 +0000 (15:05 +0100)
The console.log() is not a significant part of the test, so it can be
removed.  The exception will still be thrown if keys is not a function.

Change-Id: Ifaec6e0ed5ecc32ad7b885bff31df493120ed9aa
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>

tests/auto/declarative/qdeclarativepropertymap/tst_qdeclarativepropertymap.cpp

index 510bc59..cb2db47 100644 (file)
@@ -228,7 +228,7 @@ void tst_QDeclarativePropertyMap::QTBUG_17868()
     context.setContextProperty("map", &map);
     map.insert("key", 1);
     QDeclarativeComponent c(&engine);
-    c.setData("import QtQuick 2.0\nItem {property bool error:false; Component.onCompleted: {try{console.log(map.keys());}catch(e) {error=true;}}}",QUrl());
+    c.setData("import QtQuick 2.0\nItem {property bool error:false; Component.onCompleted: {try{ map.keys(); }catch(e) {error=true;}}}",QUrl());
     QObject *obj = c.create(&context);
     QVERIFY(obj);
     QVERIFY(!obj->property("error").toBool());