aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qjsengine/tst_qjsengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qjsengine/tst_qjsengine.cpp')
-rw-r--r--tests/auto/qml/qjsengine/tst_qjsengine.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/auto/qml/qjsengine/tst_qjsengine.cpp b/tests/auto/qml/qjsengine/tst_qjsengine.cpp
index 02d6dbc32a..e99a702b1d 100644
--- a/tests/auto/qml/qjsengine/tst_qjsengine.cpp
+++ b/tests/auto/qml/qjsengine/tst_qjsengine.cpp
@@ -2357,7 +2357,6 @@ void tst_QJSEngine::jsFutureReservedWords_data()
void tst_QJSEngine::jsFutureReservedWords()
{
- QSKIP("Fails");
// See ECMA-262 Section 7.6.1.2, "Future Reserved Words".
// In real-world implementations, most of these words are
// actually allowed as normal identifiers.
@@ -2378,6 +2377,16 @@ void tst_QJSEngine::jsFutureReservedWords()
// this should probably be allowed (see task 162567)
QJSEngine eng;
QJSValue ret = eng.evaluate("o = {}; o." + word + " = 123");
+
+ QEXPECT_FAIL("class", "QTBUG-27193", Abort);
+ QEXPECT_FAIL("const", "QTBUG-27193", Abort);
+ QEXPECT_FAIL("debugger", "QTBUG-27193", Abort);
+ QEXPECT_FAIL("enum", "QTBUG-27193", Abort);
+ QEXPECT_FAIL("export", "QTBUG-27193", Abort);
+ QEXPECT_FAIL("extends", "QTBUG-27193", Abort);
+ QEXPECT_FAIL("import", "QTBUG-27193", Abort);
+ QEXPECT_FAIL("super", "QTBUG-27193", Abort);
+
QCOMPARE(ret.isNumber(), allowed);
QCOMPARE(!ret.isError(), allowed);
}