From 7f2f24c1362e3c71c2e076e8c28a86e0295741e6 Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Mon, 11 Aug 2014 12:13:46 +0200 Subject: Fix compilation of tst_compilation (:-P) benchmark. Change-Id: I7bbf24d816a356f100d7e2c5a8e7a81218f0f54d Reviewed-by: Gunnar Sletta --- .../benchmarks/qml/compilation/tst_compilation.cpp | 31 ---------------------- tests/benchmarks/qml/qml.pro | 1 + 2 files changed, 1 insertion(+), 31 deletions(-) (limited to 'tests/benchmarks') diff --git a/tests/benchmarks/qml/compilation/tst_compilation.cpp b/tests/benchmarks/qml/compilation/tst_compilation.cpp index eac3dcc2dd..5c9017a3c8 100644 --- a/tests/benchmarks/qml/compilation/tst_compilation.cpp +++ b/tests/benchmarks/qml/compilation/tst_compilation.cpp @@ -47,7 +47,6 @@ #include #include #include -#include #include #include @@ -65,9 +64,6 @@ private slots: void jsparser_data(); void jsparser(); - void scriptparser_data(); - void scriptparser(); - private: QQmlEngine engine; }; @@ -130,33 +126,6 @@ void tst_compilation::jsparser() } } -void tst_compilation::scriptparser_data() -{ - QTest::addColumn("file"); - - QTest::newRow("boomblock") << QString(SRCDIR + QLatin1String("/data/BoomBlock.qml")); -} - -void tst_compilation::scriptparser() -{ - QFETCH(QString, file); - - QFile f(file); - QVERIFY(f.open(QIODevice::ReadOnly)); - QByteArray data = f.readAll(); - - //TODO(pvarga): check preparseData - QByteArray preparseData; - QUrl url = QUrl::fromLocalFile(file); - QString urlString = url.toString(); - - QBENCHMARK { - QQmlScript::Parser parser; - parser.parse(data, preparseData, url, urlString); - parser.tree(); - } -} - QTEST_MAIN(tst_compilation) #include "tst_compilation.moc" diff --git a/tests/benchmarks/qml/qml.pro b/tests/benchmarks/qml/qml.pro index c50f57b655..3f2772c604 100644 --- a/tests/benchmarks/qml/qml.pro +++ b/tests/benchmarks/qml/qml.pro @@ -3,6 +3,7 @@ TEMPLATE = subdirs SUBDIRS += \ binding \ creation \ + compilation \ javascript \ holistic \ pointers \ -- cgit v1.2.3