diff options
author | Milian Wolff <milian.wolff@kdab.com> | 2014-07-02 16:03:37 +0200 |
---|---|---|
committer | Milian Wolff <milian.wolff@kdab.com> | 2014-07-03 13:44:42 +0200 |
commit | 5418f5795e2fd657efa3ceede749228c1e10d25c (patch) | |
tree | 0d3109f25ab416befbaa44ba26f1380d64b30db6 /tests/auto/qml/data/grouping.html | |
parent | 3c1884f15ed1120bf36efb918cad0bcb461d5193 (diff) | |
download | qtwebchannel-5418f5795e2fd657efa3ceede749228c1e10d25c.tar.gz |
Add cmake test, adapt test directory layout and point to dev branches.
The auto tests are now located in tests/auto instead of directly in
tests/. This is required to ensure the cmake test is found.
Furthermore, the sync.profile is updated to point to refs/heads/dev,
as we target Qt 5.4 with this new module.
Change-Id: I1e6e99968b7081b5774eaf30319cac1fbaed35c2
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
Diffstat (limited to 'tests/auto/qml/data/grouping.html')
-rw-r--r-- | tests/auto/qml/data/grouping.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/qml/data/grouping.html b/tests/auto/qml/data/grouping.html new file mode 100644 index 0000000..f2d7aec --- /dev/null +++ b/tests/auto/qml/data/grouping.html @@ -0,0 +1,17 @@ +<html> + <head> + <script type="text/javascript" src="qrc:///qwebchannel/qwebchannel.js"></script> + <script type="text/javascript" src="testsetup.js"></script> + <script type="text/javascript"> + //BEGIN SETUP + window.channel = createWebChannel(function(channel) { + channel.subscribe(QWebChannelMessageTypes.propertyUpdate, function() { + channel.exec({label: "gotPropertyUpdate", values: [myObj.myProperty(), myOtherObj.foo(), myOtherObj.bar()]}); + }); + }); + //END SETUP + </script> + </head> + <body> + </body> +</html> |