diff options
author | Tomi Korpipää <tomi.korpipaa@qt.io> | 2016-11-18 13:12:13 +0200 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@qt.io> | 2016-11-18 11:17:22 +0000 |
commit | e584f8753a39d3364aa50b4b89bafa4a0209af7c (patch) | |
tree | d6438e2c66dd3ae5310bce8e0b49bae84cf228cc /tests/auto/qmltest | |
parent | 4ff14c23b271747cc7a23fd72499d2032d692185 (diff) |
Allow light position modification by user
Change-Id: I7efd56754bae16990fd11081493da0a37698f76b
Task-number: QTRD-1803
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'tests/auto/qmltest')
-rw-r--r-- | tests/auto/qmltest/scene3d/tst_light.qml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/auto/qmltest/scene3d/tst_light.qml b/tests/auto/qmltest/scene3d/tst_light.qml index 35d1e0ca..68602316 100644 --- a/tests/auto/qmltest/scene3d/tst_light.qml +++ b/tests/auto/qmltest/scene3d/tst_light.qml @@ -28,7 +28,7 @@ ****************************************************************************/ import QtQuick 2.0 -import QtDataVisualization 1.2 +import QtDataVisualization 1.3 import QtTest 1.0 Item { @@ -36,26 +36,26 @@ Item { height: 150 width: 150 - // TODO: Has no adjustable properties yet. - // Keeping this as a placeholder for future implementations (QTRD-2406) - /* Light3D { id: initial } Light3D { id: initialized + autoPosition: true } Light3D { id: change + autoPosition: true } TestCase { name: "Light3D Initial" function test_initial() { + compare(initial.autoPosition, false) } } @@ -63,6 +63,7 @@ Item { name: "Light3D Initialized" function test_initialized() { + compare(initialized.autoPosition, true) } } @@ -70,7 +71,9 @@ Item { name: "Light3D Change" function test_change() { + compare(change.autoPosition, true) + change.autoPosition = false + compare(change.autoPosition, false) } } - */ } |