Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativevaluetypes / data / bindingsSpliceCorrectly.2.qml
1 import Test 1.0
2 import QtQuick 1.0
3
4 BindingsSpliceCorrectlyType {
5     property bool test: false
6
7     property bool italicProperty: false
8
9     font.italic: italicProperty
10     font.bold: false
11
12     Component.onCompleted: {
13         // Test initial state
14         if (font.italic != false) return;
15         if (font.bold != false) return;
16
17         // Test italic binding worked
18         italicProperty = true;
19
20         if (font.italic != true) return;
21         if (font.bold != false) return;
22
23         // Test bold binding was removed by constant write
24         boldProperty = true;
25         if (font.italic != true) return;
26         if (font.bold != false) return;
27
28         test = true;
29     }
30 }
31