summaryrefslogtreecommitdiff
path: root/tests/benchmarks
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago.santos@nokia.com>2011-01-18 14:25:45 +0200
committerThiago Marcos P. Santos <thiago.santos@nokia.com>2011-01-18 14:25:45 +0200
commit7e860af0953b37442757843be2aebd05f57a920b (patch)
tree4545c88e2b16f6a62ba6736b0b83e9ce059ea875 /tests/benchmarks
parentdda896cd2e0f54c92ac111d8d910c2e0abd78512 (diff)
downloadqtquickcontrols-7e860af0953b37442757843be2aebd05f57a920b.tar.gz
Added missing benchmark tests
Also renamed input fields tests to the current component name
Diffstat (limited to 'tests/benchmarks')
-rw-r--r--tests/benchmarks/BasicButtonBenchmark.qml9
-rw-r--r--tests/benchmarks/ButtonColumnBenchmark.qml13
-rw-r--r--tests/benchmarks/ButtonRowBenchmark.qml13
-rw-r--r--tests/benchmarks/ScrollDecoratorBenchmark.qml11
-rw-r--r--tests/benchmarks/ScrollIndicatorBenchmark.qml12
-rw-r--r--tests/benchmarks/TextAreaBenchmark.qml (renamed from tests/benchmarks/MultiLineEditBenchmark.qml)0
-rw-r--r--tests/benchmarks/TextFieldBenchmark.qml (renamed from tests/benchmarks/LineEditBenchmark.qml)0
7 files changed, 58 insertions, 0 deletions
diff --git a/tests/benchmarks/BasicButtonBenchmark.qml b/tests/benchmarks/BasicButtonBenchmark.qml
new file mode 100644
index 00000000..95caac2b
--- /dev/null
+++ b/tests/benchmarks/BasicButtonBenchmark.qml
@@ -0,0 +1,9 @@
+import QtQuick 1.0
+import QmlTime 1.0 as QmlTime
+import "../../components" as QtComponents
+
+Item {
+ QmlTime.Timer {
+ component: QtComponents.BasicButton { }
+ }
+}
diff --git a/tests/benchmarks/ButtonColumnBenchmark.qml b/tests/benchmarks/ButtonColumnBenchmark.qml
new file mode 100644
index 00000000..e03e7ad1
--- /dev/null
+++ b/tests/benchmarks/ButtonColumnBenchmark.qml
@@ -0,0 +1,13 @@
+import QtQuick 1.0
+import QmlTime 1.0 as QmlTime
+import "../../components" as QtComponents
+
+Item {
+ QmlTime.Timer {
+ component: QtComponents.ButtonColumn {
+ QtComponents.Button { text: "Button A" }
+ QtComponents.Button { text: "Buttom B" }
+ QtComponents.Button { text: "Bottom C" }
+ }
+ }
+}
diff --git a/tests/benchmarks/ButtonRowBenchmark.qml b/tests/benchmarks/ButtonRowBenchmark.qml
new file mode 100644
index 00000000..ebe88494
--- /dev/null
+++ b/tests/benchmarks/ButtonRowBenchmark.qml
@@ -0,0 +1,13 @@
+import QtQuick 1.0
+import QmlTime 1.0 as QmlTime
+import "../../components" as QtComponents
+
+Item {
+ QmlTime.Timer {
+ component: QtComponents.ButtonRow {
+ QtComponents.Button { text: "Button A" }
+ QtComponents.Button { text: "Buttom B" }
+ QtComponents.Button { text: "Bottom C" }
+ }
+ }
+}
diff --git a/tests/benchmarks/ScrollDecoratorBenchmark.qml b/tests/benchmarks/ScrollDecoratorBenchmark.qml
new file mode 100644
index 00000000..0f15b2bd
--- /dev/null
+++ b/tests/benchmarks/ScrollDecoratorBenchmark.qml
@@ -0,0 +1,11 @@
+import QtQuick 1.0
+import QmlTime 1.0 as QmlTime
+import "../../components" as QtComponents
+
+Item {
+ GridView { id: gridView }
+
+ QmlTime.Timer {
+ component: QtComponents.ScrollDecorator { flickable: gridView }
+ }
+}
diff --git a/tests/benchmarks/ScrollIndicatorBenchmark.qml b/tests/benchmarks/ScrollIndicatorBenchmark.qml
new file mode 100644
index 00000000..76ea5479
--- /dev/null
+++ b/tests/benchmarks/ScrollIndicatorBenchmark.qml
@@ -0,0 +1,12 @@
+import QtQuick 1.0
+import QmlTime 1.0 as QmlTime
+import "../../components" as QtComponents
+
+Item {
+ GridView { id: gridView }
+
+ QmlTime.Timer {
+ component: Item { QtComponents.ScrollIndicator { scrollItem: gridView }
+ }
+ }
+}
diff --git a/tests/benchmarks/MultiLineEditBenchmark.qml b/tests/benchmarks/TextAreaBenchmark.qml
index a7ddf0c1..a7ddf0c1 100644
--- a/tests/benchmarks/MultiLineEditBenchmark.qml
+++ b/tests/benchmarks/TextAreaBenchmark.qml
diff --git a/tests/benchmarks/LineEditBenchmark.qml b/tests/benchmarks/TextFieldBenchmark.qml
index 38309ad2..38309ad2 100644
--- a/tests/benchmarks/LineEditBenchmark.qml
+++ b/tests/benchmarks/TextFieldBenchmark.qml