aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qjsengine
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-07-31 09:43:43 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2018-08-01 13:17:51 +0000
commitf570d37d737b3e8443e45158c709a4aedf6c95f3 (patch)
treee7e70f13b3e3c7ac16f1bad394d323a7ad65ecbf /tests/auto/qml/qjsengine
parente99038b24d8b9f4a8cc503d1e3f789a93a3e8330 (diff)
Fix a bunch of test failures for Function.prototype.toString()
Change-Id: I36f642e8db7f88698b25eed9e8a64ac2c5896b10 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qjsengine')
-rw-r--r--tests/auto/qml/qjsengine/tst_qjsengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qjsengine/tst_qjsengine.cpp b/tests/auto/qml/qjsengine/tst_qjsengine.cpp
index 935fd53a42..04a93fe436 100644
--- a/tests/auto/qml/qjsengine/tst_qjsengine.cpp
+++ b/tests/auto/qml/qjsengine/tst_qjsengine.cpp
@@ -4253,9 +4253,9 @@ void tst_QJSEngine::functionToString_data()
QTest::addColumn<QString>("expectedString");
QTest::newRow("named function") << QString::fromLatin1("function f() {}; f.toString()")
- << QString::fromLatin1("function f() { [code] }");
+ << QString::fromLatin1("function f() { [native code] }");
QTest::newRow("anonymous function") << QString::fromLatin1("(function() {}).toString()")
- << QString::fromLatin1("function() { [code] }");
+ << QString::fromLatin1("function() { [native code] }");
}
// Tests that function.toString() prints the function's name.