diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2011-12-06 14:09:22 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-06 15:29:39 +0100 |
commit | e7d1a74d994445749275e8e5cb88b0a21938bb09 (patch) | |
tree | 6dde884c6079e8a448a4f645b144fd252b4e3d6e /tests/auto/declarative/qmlmin/tst_qmlmin.cpp | |
parent | e7281e2dc89ca934d3c1e89484d279331a96de71 (diff) |
Improve parsing of escape characters and regexp literals.
That is, in QML/JS you can escape characters in identifiers, e.g.
var c\u0061se = 25
declares a variable called `case' with value 25. In such cases
qmlmin needs to preserve the escape sequence in the declaration.
Also, fix possible errors when pasting keywords after regexp literals.
The minifier needs to preserve the whitespace character after the
regexp delimiter, e.g.
/x/instanceof blah
without the white space after the regexp, the `i' of `instanceof'
is parsed as a regexp flag.
Change-Id: I5f426ac62949e34d092d4fdb0a41243de8ff2236
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Diffstat (limited to 'tests/auto/declarative/qmlmin/tst_qmlmin.cpp')
-rw-r--r-- | tests/auto/declarative/qmlmin/tst_qmlmin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlmin/tst_qmlmin.cpp b/tests/auto/declarative/qmlmin/tst_qmlmin.cpp index d6146d121e..2726a637ec 100644 --- a/tests/auto/declarative/qmlmin/tst_qmlmin.cpp +++ b/tests/auto/declarative/qmlmin/tst_qmlmin.cpp @@ -107,6 +107,7 @@ void tst_qmlmin::initTestCase() invalidFiles << "tests/auto/declarative/qdeclarativeecmascript/data/qtbug_22843.js"; invalidFiles << "tests/auto/declarative/qdeclarativeecmascript/data/qtbug_22843.library.js"; invalidFiles << "tests/auto/declarative/qdeclarativeworkerscript/data/script_error_onLoad.js"; + invalidFiles << "tests/auto/declarative/parserstress/tests/ecma_3/Unicode/regress-352044-02-n.js"; } QStringList tst_qmlmin::findFiles(const QDir &d) |