aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qjsonbinding
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-06-17 09:18:19 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-06-17 11:43:48 +0200
commit21705ae91e727812ebaef80583136c29505e977d (patch)
tree03958ced68bae6d5e1b0ccf9a85cd9b4bd35f609 /tests/auto/qml/qjsonbinding
parent59fd742adce2e988264deda6f8378e66ed6da686 (diff)
Fix most qjsonbinding auto tests
Change-Id: I67476bc7e931e2f4790e859d4a3c00c050752271 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tests/auto/qml/qjsonbinding')
-rw-r--r--tests/auto/qml/qjsonbinding/tst_qjsonbinding.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qml/qjsonbinding/tst_qjsonbinding.cpp b/tests/auto/qml/qjsonbinding/tst_qjsonbinding.cpp
index b89192130e..e6b056fbd0 100644
--- a/tests/auto/qml/qjsonbinding/tst_qjsonbinding.cpp
+++ b/tests/auto/qml/qjsonbinding/tst_qjsonbinding.cpp
@@ -457,13 +457,13 @@ void tst_qjsonbinding::writeProperty_javascriptExpression_data()
<< "array" << "(function() { var a = [10, 20]; a.__proto__ = { proto_foo: 123 }; return a; })()"
<< "[10,20]";
- // Non-enumerable properties should be included.
+ // Non-enumerable properties should not be included.
QTest::newRow("value = object with non-enumerable property")
<< "value" << "Object.defineProperty({}, 'foo', { value: 123, enumerable: false })"
- << "{\"foo\":123}";
+ << "{}";
QTest::newRow("object = object with non-enumerable property")
<< "object" << "Object.defineProperty({}, 'foo', { value: 123, enumerable: false })"
- << "{\"foo\":123}";
+ << "{}";
// Cyclic data structures are permitted, but the cyclic links become
// empty objects.