summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qscriptengine/tst_qscriptengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qscriptengine/tst_qscriptengine.cpp b/tests/auto/qscriptengine/tst_qscriptengine.cpp
index 1f7a857..7b019c1 100644
--- a/tests/auto/qscriptengine/tst_qscriptengine.cpp
+++ b/tests/auto/qscriptengine/tst_qscriptengine.cpp
@@ -1046,17 +1046,17 @@ void tst_QScriptEngine::globalObjectProperties()
actualNames.insert(it.name());
}
}
+
QSet<QString> remainingNames = actualNames;
{
QSet<QString>::const_iterator it;
for (it = expectedNames.constBegin(); it != expectedNames.constEnd(); ++it) {
QString name = *it;
- if (!actualNames.contains(name))
- QEXPECT_FAIL("", "JSC getPropertyNames() doesn't include DontEnum properties", Abort);
QVERIFY(actualNames.contains(name));
remainingNames.remove(name);
}
}
+ QEXPECT_FAIL("", "JSC global object has extra properties (JSON and jscprint)", Abort);
QVERIFY(remainingNames.isEmpty());
}