diff options
Diffstat (limited to 'tests/qml/WebChannelTest.qml')
-rw-r--r-- | tests/qml/WebChannelTest.qml | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/qml/WebChannelTest.qml b/tests/qml/WebChannelTest.qml index 59a0cab..9a0baa9 100644 --- a/tests/qml/WebChannelTest.qml +++ b/tests/qml/WebChannelTest.qml @@ -131,7 +131,7 @@ TestCase { verify(msg); verify(msg.data); verify(msg.data.type); - compare(msg.data.type, "Qt.init"); + compare(msg.data.type, qWebChannelMessageTypes.init); } function awaitIdle() @@ -139,7 +139,19 @@ TestCase { var msg = awaitMessage(); verify(msg); verify(msg.data); - compare(msg.data.type, "Qt.idle"); + compare(msg.data.type, qWebChannelMessageTypes.idle); verify(webChannel.test_clientIsIdle()) } + + property var qWebChannelMessageTypes: ({ + signal: 1, + propertyUpdate: 2, + init: 3, + idle: 4, + debug: 5, + invokeMethod: 6, + connectToSignal: 7, + disconnectFromSignal: 8, + setProperty: 9, + }); } |