diff -r cc75c76972ee -r c0432d11811c tests/benchmarks/script/qscriptengine/tst_qscriptengine.cpp --- a/tests/benchmarks/script/qscriptengine/tst_qscriptengine.cpp Wed Apr 21 12:15:23 2010 +0300 +++ b/tests/benchmarks/script/qscriptengine/tst_qscriptengine.cpp Wed Apr 21 20:15:53 2010 +0300 @@ -269,19 +269,22 @@ void tst_QScriptEngine::translation_data() { QTest::addColumn("text"); - QTest::newRow("no translation") << "\"hello world\""; - QTest::newRow("qsTr") << "qsTr(\"hello world\")"; - QTest::newRow("qsTranslate") << "qsTranslate(\"\", \"hello world\")"; + QTest::addColumn("fileName"); + QTest::newRow("no translation") << "\"hello world\"" << ""; + QTest::newRow("qsTr") << "qsTr(\"hello world\")" << ""; + QTest::newRow("qsTranslate") << "qsTranslate(\"\", \"hello world\")" << ""; + QTest::newRow("qsTr:script.js") << "qsTr(\"hello world\")" << "script.js"; } void tst_QScriptEngine::translation() { QFETCH(QString, text); + QFETCH(QString, fileName); QScriptEngine engine; engine.installTranslatorFunctions(); QBENCHMARK { - (void)engine.evaluate(text); + (void)engine.evaluate(text, fileName); } }