summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/anchors/data/illegal2.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/anchors/data/illegal2.qml')
-rw-r--r--tests/auto/declarative/anchors/data/illegal2.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/declarative/anchors/data/illegal2.qml b/tests/auto/declarative/anchors/data/illegal2.qml
new file mode 100644
index 0000000..425d0e4
--- /dev/null
+++ b/tests/auto/declarative/anchors/data/illegal2.qml
@@ -0,0 +1,11 @@
+Rect {
+ id: rect
+ width: 120; height: 200; color: "white"
+ Text { id: Text1; text: "Hello" }
+ Text {
+ id: Text2;
+ anchors.baseline: Text1.baseline;
+ anchors.top: Text1.top;
+ text: "World"
+ }
+}