summaryrefslogtreecommitdiff
path: root/tests/auto/qml/qqmlqt/data/darker.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlqt/data/darker.qml')
-rw-r--r--tests/auto/qml/qqmlqt/data/darker.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlqt/data/darker.qml b/tests/auto/qml/qqmlqt/data/darker.qml
new file mode 100644
index 0000000000..ce6c705fb4
--- /dev/null
+++ b/tests/auto/qml/qqmlqt/data/darker.qml
@@ -0,0 +1,12 @@
+import QtQuick 2.0
+
+QtObject {
+ property variant test1: Qt.darker(Qt.rgba(1, 0.8, 0.3))
+ property variant test2: Qt.darker()
+ property variant test3: Qt.darker(Qt.rgba(1, 0.8, 0.3), 2.8)
+ property variant test4: Qt.darker("red");
+ property variant test5: Qt.darker("perfectred"); // Non-existant color
+ property variant test6: Qt.darker(10);
+ property variant test7: Qt.darker(Qt.rgba(1, 0.8, 0.3), 2.8, 10)
+}
+