mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 12:37:37 +00:00
31 lines
626 B
HTML
31 lines
626 B
HTML
|
<!DOCTYPE HTML>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<title>Test for DataStore - sync</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="container"></div>
|
||
|
<script type="application/javascript;version=1.7">
|
||
|
|
||
|
var messages = [];
|
||
|
var worker = new Worker("file_sync_worker.js");
|
||
|
|
||
|
worker.onmessage = function(event) {
|
||
|
messages.push(event.data)
|
||
|
|
||
|
if (event.data == 'DONE') {
|
||
|
// Free the worker when all the tests are done.
|
||
|
worker.terminate();
|
||
|
|
||
|
// Fire message to the test_sync_worker.html.
|
||
|
for (var i = 0; i < messages.length; i++) {
|
||
|
alert(messages[i]);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|