mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update web-platform-tests to revision 000905d008db2538360020335bc2dbba16d322b5.
This commit is contained in:
parent
53d2432c90
commit
2d49203b9c
100 changed files with 3807 additions and 201 deletions
|
@ -1,20 +1,20 @@
|
|||
(function ()
|
||||
{
|
||||
var test = new async_test("test inline worker");
|
||||
var workerSource = document.getElementById('inlineWorker');
|
||||
|
||||
var blob = new Blob([workerSource.textContent]);
|
||||
|
||||
// can I create a new script tag like this? ack...
|
||||
var url = window.URL.createObjectURL(blob);
|
||||
|
||||
var worker = new Worker(url);
|
||||
try {
|
||||
var worker = new Worker(url);
|
||||
}
|
||||
catch (e) {
|
||||
done();
|
||||
}
|
||||
|
||||
worker.addEventListener('message', function(e) {
|
||||
test.step(function () {
|
||||
assert_not_equals(e.data, 'fail', 'inline script ran');
|
||||
test.done();
|
||||
})
|
||||
assert_unreached("script ran");
|
||||
}, false);
|
||||
|
||||
worker.postMessage('');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue