diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-28 15:34:41 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-28 15:39:58 (GMT) |
commit | fecd70784dfb2ae9159c1ed40840bbb09dd218f0 (patch) | |
tree | 642a0e231fca781b49b0ed59f906638081540cbb /tests/auto/qscriptengine/tst_qscriptengine.cpp | |
parent | 1c72e77e43593dfea6c6392d1058e63762efb534 (diff) | |
download | Qt-fecd70784dfb2ae9159c1ed40840bbb09dd218f0.zip Qt-fecd70784dfb2ae9159c1ed40840bbb09dd218f0.tar.gz Qt-fecd70784dfb2ae9159c1ed40840bbb09dd218f0.tar.bz2 |
Fix tst_QScriptEngine::automaticSemicolonInsertion
Some Semicollon were added at the end of the input while they shouldn't
have.
Let handle the automatic semicolon insertion by the Parser (as it does
already for the normal new lines)
Reviewed-by: Kent Hansen
Diffstat (limited to 'tests/auto/qscriptengine/tst_qscriptengine.cpp')
-rw-r--r-- | tests/auto/qscriptengine/tst_qscriptengine.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/auto/qscriptengine/tst_qscriptengine.cpp b/tests/auto/qscriptengine/tst_qscriptengine.cpp index 9959990..5b4d02d 100644 --- a/tests/auto/qscriptengine/tst_qscriptengine.cpp +++ b/tests/auto/qscriptengine/tst_qscriptengine.cpp @@ -2459,29 +2459,22 @@ void tst_QScriptEngine::automaticSemicolonInsertion() { QScriptValue ret = eng.evaluate("if (0)"); - QEXPECT_FAIL("", "Semicolon incorrectly inserted", Continue); QVERIFY(ret.isError()); } { QScriptValue ret = eng.evaluate("while (0)"); - QEXPECT_FAIL("", "Semicolon incorrectly inserted", Continue); QVERIFY(ret.isError()); } -#if 0 // ### hangs because of the semicolon insertion { QScriptValue ret = eng.evaluate("for (;;)"); - QEXPECT_FAIL("", "Semicolon incorrectly inserted", Continue); QVERIFY(ret.isError()); } -#endif { QScriptValue ret = eng.evaluate("for (p in this)"); - QEXPECT_FAIL("", "Semicolon incorrectly inserted", Continue); QVERIFY(ret.isError()); } { QScriptValue ret = eng.evaluate("with (this)"); - QEXPECT_FAIL("", "Semicolon incorrectly inserted", Continue); QVERIFY(ret.isError()); } { |