aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2020-07-30 14:28:31 +0200
committerEirik Aavitsland <eirik.aavitsland@qt.io>2020-07-31 14:07:34 +0200
commitceb1d14bb30b560f20f2b5b3e75c8e228ddc0cb2 (patch)
tree5784f83264729d5aebe082b797047e72e19c8000 /tests/manual
parent3baa87d0697368aea1a236b47c9971071a7b33ae (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 Pick-to: 5.15 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'tests/manual')
-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
- }
- }
-}