summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmltest/surface3d/tst_surfaceseries.qml
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2014-10-15 11:40:38 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2014-10-15 11:50:29 +0300
commit3607a9c92b6544dfeab59ac8d83ba1517e7cdc93 (patch)
tree3f9b4d0644dc799a96d7bb294c49900ebe2fcf12 /tests/auto/qmltest/surface3d/tst_surfaceseries.qml
parent0eb5da28b49d770bbbe7b3e752df2fd2f66c4806 (diff)
Added test for QML scene types
Also added missing version 1.2 properties to previously done tests. Task-number: QTRD-3368 Change-Id: Ifa5197cecc9bb95ca288a44ebcbd6fbcc0bf1e7d Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Diffstat (limited to 'tests/auto/qmltest/surface3d/tst_surfaceseries.qml')
-rw-r--r--tests/auto/qmltest/surface3d/tst_surfaceseries.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qmltest/surface3d/tst_surfaceseries.qml b/tests/auto/qmltest/surface3d/tst_surfaceseries.qml
index 866a04b9..dff2e4a8 100644
--- a/tests/auto/qmltest/surface3d/tst_surfaceseries.qml
+++ b/tests/auto/qmltest/surface3d/tst_surfaceseries.qml
@@ -67,6 +67,7 @@ Item {
drawMode: Surface3DSeries.DrawSurface
flatShadingEnabled: false
selectedPoint: Qt.point(0, 0)
+ textureFile: ":\customtexture.jpg"
baseColor: "blue"
baseGradient: gradient1
@@ -143,6 +144,7 @@ Item {
compare(initialized.drawMode, Surface3DSeries.DrawSurface)
compare(initialized.flatShadingEnabled, false)
compare(initialized.selectedPoint, Qt.point(0, 0))
+ compare(initialized.textureFile, ":\customtexture.jpg")
}
function test_2_initialized_common() {
@@ -173,6 +175,7 @@ Item {
change.drawMode = Surface3DSeries.DrawSurface
change.flatShadingEnabled = false
change.selectedPoint = Qt.point(0, 0)
+ change.textureFile = ":\customtexture.jpg"
}
function test_2_test_change() {
@@ -181,6 +184,7 @@ Item {
compare(change.drawMode, Surface3DSeries.DrawSurface)
compare(change.flatShadingEnabled, false)
compare(change.selectedPoint, Qt.point(0, 0))
+ compare(change.textureFile, ":\customtexture.jpg")
}
function test_3_change_common() {