aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2020-07-30 14:28:31 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-08-27 14:20:25 +0000
commit8699697bacf876931875023ae2766c04bcdd2dff (patch)
treed4def2b6af6611d9ec6c8ee0db1c640a6c7b8f8e
parent8fdc4307d303ac6588141b16530008b31c00211e (diff)
Improve lancelot test case for recursive ShaderEffectSource
Choose a rotation degree which makes it more obviously visible if it gets applied multiple times, and which avoids the risk of an accidental match by rotating a full round. As a drive-by, remove the second recursive test case, as it does not test anything other than the first. Change-Id: I019743cd8a85763c4704019f7fb7b24c3451308c Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> (cherry picked from commit ceb1d14bb30b560f20f2b5b3e75c8e228ddc0cb2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/manual/scenegraph_lancelot/data/shaders/recursive/recursive_1.qml2
-rw-r--r--tests/manual/scenegraph_lancelot/data/shaders/recursive/recursive_2.qml28
2 files changed, 1 insertions, 29 deletions
diff --git a/tests/manual/scenegraph_lancelot/data/shaders/recursive/recursive_1.qml b/tests/manual/scenegraph_lancelot/data/shaders/recursive/recursive_1.qml
index 43843c677b..860858856f 100644
--- a/tests/manual/scenegraph_lancelot/data/shaders/recursive/recursive_1.qml
+++ b/tests/manual/scenegraph_lancelot/data/shaders/recursive/recursive_1.qml
@@ -21,7 +21,7 @@ Item {
sourceItem: foo
live: false
smooth: true
- rotation: 45
+ rotation: 37
recursive: true
}
}
diff --git a/tests/manual/scenegraph_lancelot/data/shaders/recursive/recursive_2.qml b/tests/manual/scenegraph_lancelot/data/shaders/recursive/recursive_2.qml
deleted file mode 100644
index 957131b4b7..0000000000
--- a/tests/manual/scenegraph_lancelot/data/shaders/recursive/recursive_2.qml
+++ /dev/null
@@ -1,28 +0,0 @@
-import QtQuick 2.0
-
-Item {
- width: 320
- height: 480
-
- Rectangle {
- id: foo
- width: 200
- height: 200
- radius: 100
- anchors.centerIn: parent
- gradient: Gradient {
- GradientStop { position: 0; color: "red" }
- GradientStop { position: 0.5; color: "white" }
- GradientStop { position: 1; color: "blue" }
- }
- ShaderEffectSource {
- id: buffer
- anchors.fill: parent
- sourceItem: foo
- live: false
- smooth: true
- rotation: 90
- recursive: true
- }
- }
-}