diff options
Diffstat (limited to 'tests/auto/qml/qquicklistmodel/data/workerremovelist.js')
-rw-r--r-- | tests/auto/qml/qquicklistmodel/data/workerremovelist.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qml/qquicklistmodel/data/workerremovelist.js b/tests/auto/qml/qquicklistmodel/data/workerremovelist.js new file mode 100644 index 0000000000..f63dd68839 --- /dev/null +++ b/tests/auto/qml/qquicklistmodel/data/workerremovelist.js @@ -0,0 +1,9 @@ +WorkerScript.onMessage = function(msg) { + if (msg.action == 'removeList') { + msg.model.remove(0); + } else if (msg.action == 'dosync') { + msg.model.sync(); + } + WorkerScript.sendMessage({'done': true}) +} + |