Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativevaluetypes / data / bindingsSpliceCorrectly.1.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
11     Component.onCompleted: {
12         // Test initial state
13         if (font.italic != false) return;
14         if (font.bold != false) return;
15
16         // Test italic binding worked
17         italicProperty = true;
18
19         if (font.italic != true) return;
20         if (font.bold != false) return;
21
22         // Test bold binding worked
23         boldProperty = true;
24         if (font.italic != true) return;
25         if (font.bold != true) return;
26
27         test = true;
28     }
29 }