8 MySequenceConversionObject {
13 property bool success: false
14 property bool finished: false
16 function testIntSequence() {
17 msco.intListProperty = [ 0, 1, 2, 3, 4, 5, 6, 7 ];
18 worker.sendSequence(msco.intListProperty);
21 function testQrealSequence() {
22 msco.qrealListProperty = [ 0.1, 1.1, 2.1, 3.1, 4.1, 5.1, 6.1, 7.1 ];
23 worker.sendSequence(msco.qrealListProperty);
26 function testBoolSequence() {
27 msco.boolListProperty = [ false, true, true, false, false, true, false, true ];
28 worker.sendSequence(msco.boolListProperty);
31 function testStringSequence() {
32 msco.stringListProperty = [ "one", "two", "three", "four" ];
33 worker.sendSequence(msco.stringListProperty);
36 function testQStringSequence() {
37 msco.qstringListProperty = [ "one", "two", "three", "four" ];
38 worker.sendSequence(msco.qstringListProperty);
41 function testUrlSequence() {
42 msco.urlListProperty = [ "www.example1.com", "www.example2.com", "www.example3.com", "www.example4.com" ];
43 worker.sendSequence(msco.urlListProperty);
46 function testVariantSequence() {
47 msco.variantListProperty = [ "one", true, 3, "four" ];
48 worker.sendSequence(msco.variantListProperty);
53 source: "threadScript.js"
55 property variant expected
56 property variant response
58 function sendSequence(seq) {
60 root.finished = false;
61 worker.expected = seq;
62 worker.sendMessage(seq);
66 worker.response = messageObject;
67 if (worker.response.toString() == worker.expected.toString())