From 3a5bbbe499fdf3014f4bce6faabfb34bd38b3da8 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Thu, 1 Dec 2011 13:31:32 +0000 Subject: [PATCH] Remove debugging output 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 --- .../tst_qdeclarativepropertymap.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/auto/declarative/qdeclarativepropertymap/tst_qdeclarativepropertymap.cpp b/tests/auto/declarative/qdeclarativepropertymap/tst_qdeclarativepropertymap.cpp index 510bc59..cb2db47 100644 --- a/tests/auto/declarative/qdeclarativepropertymap/tst_qdeclarativepropertymap.cpp +++ b/tests/auto/declarative/qdeclarativepropertymap/tst_qdeclarativepropertymap.cpp @@ -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()); -- 1.7.2.5