diff options
author | Eskil Abrahamsen Blomfeldt <[email protected]> | 2013-02-08 16:27:41 +0100 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <[email protected]> | 2013-02-08 16:31:20 +0100 |
commit | 84f9848fd9f20536b18834a54ef15c6a65f8a682 (patch) | |
tree | c31353dd1434692b2b4f351126b3abcd8460b8a8 /tests/auto/qscriptengine | |
parent | e7a8eef49d6d205e6cb549e879a27af4fe7fcce4 (diff) | |
parent | 689406ac2424095d6cd4e6bcb3430e53a7e7bbfa (diff) |
Merge branch 'dev' into androidwip/android
Change-Id: Iee99e20b0c2eedd01e06a93b10381c03b42788dc
Diffstat (limited to 'tests/auto/qscriptengine')
-rw-r--r-- | tests/auto/qscriptengine/qscriptengine.pro | 8 | ||||
-rw-r--r-- | tests/auto/qscriptengine/tst_qscriptengine.cpp | 14 |
2 files changed, 9 insertions, 13 deletions
diff --git a/tests/auto/qscriptengine/qscriptengine.pro b/tests/auto/qscriptengine/qscriptengine.pro index adc1a46..3900f5d 100644 --- a/tests/auto/qscriptengine/qscriptengine.pro +++ b/tests/auto/qscriptengine/qscriptengine.pro @@ -7,18 +7,14 @@ include(../shared/util.pri) wince* { DEFINES += SRCDIR=\\\"./\\\" -} else:!symbian { +} else { DEFINES += SRCDIR=\\\"$$PWD\\\" } -wince*|symbian: { +wince* { addFiles.files = script addFiles.path = . DEPLOYMENT += addFiles } -symbian: { - TARGET.UID3 = 0xE0340006 - DEFINES += SYMBIAN_SRCDIR_UID=$$lower($$replace(TARGET.UID3,"0x","")) -} DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/qscriptengine/tst_qscriptengine.cpp b/tests/auto/qscriptengine/tst_qscriptengine.cpp index 1ee1bf5..1747b2e 100644 --- a/tests/auto/qscriptengine/tst_qscriptengine.cpp +++ b/tests/auto/qscriptengine/tst_qscriptengine.cpp @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). +** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the test suite of the Qt Toolkit. @@ -1559,7 +1559,7 @@ void tst_QScriptEngine::builtinFunctionNames_data() // See ECMA-262 Chapter 15, "Standard Built-in ECMAScript Objects". - QTest::newRow("print") << QString("print") << QString("print"); // QtScript extension. + QTest::newRow("print") << QString("print") << QString("print"); // Qt Script extension. QTest::newRow("parseInt") << QString("parseInt") << QString("parseInt"); QTest::newRow("parseFloat") << QString("parseFloat") << QString("parseFloat"); QTest::newRow("isNaN") << QString("isNaN") << QString("isNaN"); @@ -1570,8 +1570,8 @@ void tst_QScriptEngine::builtinFunctionNames_data() QTest::newRow("encodeURIComponent") << QString("encodeURIComponent") << QString("encodeURIComponent"); QTest::newRow("escape") << QString("escape") << QString("escape"); QTest::newRow("unescape") << QString("unescape") << QString("unescape"); - QTest::newRow("version") << QString("version") << QString("version"); // QtScript extension. - QTest::newRow("gc") << QString("gc") << QString("gc"); // QtScript extension. + QTest::newRow("version") << QString("version") << QString("version"); // Qt Script extension. + QTest::newRow("gc") << QString("gc") << QString("gc"); // Qt Script extension. QTest::newRow("Array") << QString("Array") << QString("Array"); QTest::newRow("Array.prototype.toString") << QString("Array.prototype.toString") << QString("toString"); @@ -4035,7 +4035,7 @@ void tst_QScriptEngine::jsFunctionDeclarationAsStatement() // at the beginning of chapter 12 in ECMA-262 5th edition, where it's // recommended that implementations either disallow this usage or issue // a warning. - // Since we had a bug report long ago about QtScript not supporting this + // Since we had a bug report long ago about Qt Script not supporting this // "feature" (and thus deviating from other implementations), we still // check this behavior. @@ -4376,7 +4376,7 @@ void tst_QScriptEngine::jsShadowReadOnlyPrototypeProperty() // SpiderMonkey has different behavior than JSC and V8; it disallows // creating a property on the instance if there's a property with the // same name in the prototype, and that property is read-only. We - // adopted that behavior in the old (4.5) QtScript back-end, but it + // adopted that behavior in the old (4.5) Qt Script back-end, but it // just seems weird -- and non-compliant. Adopt the JSC behavior instead. QScriptEngine eng; QVERIFY(eng.evaluate("o = {}; o.__proto__ = parseInt; o.length").isNumber()); @@ -5802,7 +5802,7 @@ void tst_QScriptEngine::qRegExpInport() } // QScriptValue::toDateTime() returns a local time, whereas JS dates -// are always stored as UTC. QtScript must respect the current time +// are always stored as UTC. Qt Script must respect the current time // zone, and correctly adjust for daylight saving time that may be in // effect at a given date (QTBUG-9770). void tst_QScriptEngine::dateRoundtripJSQtJS() |