@@ -0,0 +1,99 @@
2+ * Copyright 2013 Canonical Ltd.
4+ * This program is free software; you can redistribute it and/or modify
5+ * it under the terms of the GNU General Public License as published by
6+ * the Free Software Foundation; version 3.
8+ * This program is distributed in the hope that it will be useful,
9+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
10+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+ * GNU General Public License for more details.
13+ * You should have received a copy of the GNU General Public License
14+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
19+import Unity.Test 0.1 as UT
20+import "../../../Components"
31+ text: "Displayed on top left"
34+ width: parent.width/2
35+ height: parent.height/2
42+ text: "Displayed on top right"
45+ width: parent.width/2
46+ height: parent.height/2
53+ text: "Displayed on bottom right"
56+ width: parent.width/2
57+ height: parent.height/2
65+ text: "Displayed on bottom left"
68+ width: parent.width/2
69+ height: parent.height/2
81+ function test_animations() {
82+ compare(right.__anim_running, 1)
84+ compare(left.__anim_running, 0)
86+ compare(left.__anim_running, 1)
89+ function test_skip() {
90+ signalSpy.signalName = "skip"
92+ var bottomSkip = findChild(bottom, "skipLabel")
93+ mousePress(bottomSkip, 1, 1)
94+ mouseRelease(bottomSkip, 1, 1)
96+ compare(bottom.enabled, false)