diff options
Diffstat (limited to 'tests/benchmarks/declarative')
-rw-r--r-- | tests/benchmarks/declarative/qmlcomponent/object_id.txt | 6 | ||||
-rw-r--r-- | tests/benchmarks/declarative/qmlcomponent/tst_qmlcomponent.cpp | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/benchmarks/declarative/qmlcomponent/object_id.txt b/tests/benchmarks/declarative/qmlcomponent/object_id.txt new file mode 100644 index 0000000..526b6ad --- /dev/null +++ b/tests/benchmarks/declarative/qmlcomponent/object_id.txt @@ -0,0 +1,6 @@ +import Qt 4.6 + +Object { + id: Blah +} + diff --git a/tests/benchmarks/declarative/qmlcomponent/tst_qmlcomponent.cpp b/tests/benchmarks/declarative/qmlcomponent/tst_qmlcomponent.cpp index f032004..f0e029d 100644 --- a/tests/benchmarks/declarative/qmlcomponent/tst_qmlcomponent.cpp +++ b/tests/benchmarks/declarative/qmlcomponent/tst_qmlcomponent.cpp @@ -56,6 +56,7 @@ void tst_qmlcomponent::creation_data() QTest::addColumn<QString>("file"); QTest::newRow("Object") << "object.txt"; + QTest::newRow("Object - Id") << "object_id.txt"; QTest::newRow("MyQmlObject") << "myqmlobject.txt"; QTest::newRow("MyQmlObject: basic binding") << "myqmlobject_binding.txt"; QTest::newRow("Synthesized properties") << "synthesized_properties.txt"; @@ -70,6 +71,9 @@ void tst_qmlcomponent::creation() QmlComponent c(&engine, file); QVERIFY(c.isReady()); + QObject *obj = c.create(); + delete obj; + QBENCHMARK { QObject *obj = c.create(); delete obj; |