Debian Codegraph @

tests/auto/qmltest-blacklist/animators/tst_zeroduration.qml

raw
1 import QtQuick 2.2
2 import QtTest 1.1
3
4 Item {
5 id: root;
6 width: 200
7 height: 200
8
9 TestCase {
10 id: testCase
11 name: "animators-y"
12 when: box.y == 100
13 function test_endresult() {
14 compare(box.yChangeCounter, 1);
15 var image = grabImage(root);
16 verify(image.pixel(0, 100) == Qt.rgba(1, 0, 0));
17 verify(image.pixel(0, 99) == Qt.rgba(1, 1, 1)); // outside on the top
18 }
19 }
20
21 Box {
22 id: box
23
24 anchors.centerIn: undefined
25
26 YAnimator {
27 id: animation
28 target: box
29 from: 0;
30 to: 100
31 duration: 0
32 running: true
33 }
34 }
35 }