Commit afe51198 authored by Glenn Adams's avatar Glenn Adams
Browse files

Update fetches.

parent 3cbdcff0
Sun, 29 Jun 2014 00:40:08 GMT
\ No newline at end of file
Sun, 29 Jun 2014 00:50:09 GMT
\ No newline at end of file
Sun, 29 Jun 2014 00:42:32 GMT
\ No newline at end of file
Sun, 29 Jun 2014 00:52:34 GMT
\ No newline at end of file
"use strict";
function getWorkerGlobalScopeAsync(test) {
var worker = new Worker('./resources/workerglobalscope.js');
worker.onmessage = test.step_func_done(function (event) {alert(event.data);});
worker.postMessage('doit');
}
......@@ -2,19 +2,16 @@
"spec": "webworkers",
"source": "http://dev.w3.org/html5/workers/",
"local": "webworkers.html",
"helpers": [
"WorkerGlobalScope"
],
"instances": {
"AbstractWorker": "!!window['Worker'] && new Worker('./resources/empty.js')",
"SharedWorker": "!!window['SharedWorker'] && new SharedWorker('./resources/empty.js')",
"Worker": "!!window['Worker'] && new Worker('./resources/empty.js')"
"AbstractWorker": "'Worker' in window && new Worker('./resources/empty.js')",
"SharedWorker": "'SharedWorker' in window && new SharedWorker('./resources/empty.js')",
"Worker": "'Worker' in window && new Worker('./resources/empty.js')"
},
"instancesAsync": {
"DedicatedWorkerGlobalScope": "undefined",
"SharedWorkerGlobalScope": "undefined",
"WorkerGlobalScope": "getWorkerGlobalScopeAsync(test)",
"WorkerLocation": "undefined",
"WorkerNavigator": "undefined"
"DedicatedWorkerGlobalScope": "null",
"SharedWorkerGlobalScope": "null",
"WorkerGlobalScope": "null",
"WorkerLocation": "null",
"WorkerNavigator": "null"
}
}
Sun, 29 Jun 2014 00:53:49 GMT
\ No newline at end of file
Sun, 29 Jun 2014 01:04:34 GMT
\ No newline at end of file
"use strict";
function getWorkerGlobalScopeAsync(test) {
var worker = new Worker('./resources/workerglobalscope.js');
worker.onmessage = test.step_func_done(function (event) {alert(event.data);});
worker.postMessage('doit');
}
......@@ -12,5 +12,5 @@
<h1>Test SharedWorker Implements AbstractWorker Signature</h1>
<div id='log'></div>
<script>
level1('webworkers', JSON.parse(document.getElementById('idl').textContent), function(test){return !!window['SharedWorker'] && new SharedWorker('./resources/empty.js');});
level1('webworkers', JSON.parse(document.getElementById('idl').textContent), function(test){return 'SharedWorker' in window && new SharedWorker('./resources/empty.js');});
</script>
......@@ -12,5 +12,5 @@
<h1>Test Worker Implements AbstractWorker Signature</h1>
<div id='log'></div>
<script>
level1('webworkers', JSON.parse(document.getElementById('idl').textContent), function(test){return !!window['Worker'] && new Worker('./resources/empty.js');});
level1('webworkers', JSON.parse(document.getElementById('idl').textContent), function(test){return 'Worker' in window && new Worker('./resources/empty.js');});
</script>
......@@ -12,5 +12,5 @@
<h1>Test Interface AbstractWorker Signature</h1>
<div id='log'></div>
<script>
level1('webworkers', JSON.parse(document.getElementById('idl').textContent), function(test){return !!window['Worker'] && new Worker('./resources/empty.js');});
level1('webworkers', JSON.parse(document.getElementById('idl').textContent), function(test){return 'Worker' in window && new Worker('./resources/empty.js');});
</script>
......@@ -12,5 +12,5 @@
<h1>Test Interface DedicatedWorkerGlobalScope Signature</h1>
<div id='log'></div>
<script>
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), undefined);
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), null);
</script>
......@@ -12,5 +12,5 @@
<h1>Test WorkerNavigator Implements NavigatorID Signature</h1>
<div id='log'></div>
<script>
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), undefined);
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), null);
</script>
......@@ -12,5 +12,5 @@
<h1>Test WorkerNavigator Implements NavigatorLanguage Signature</h1>
<div id='log'></div>
<script>
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), undefined);
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), null);
</script>
......@@ -12,5 +12,5 @@
<h1>Test WorkerNavigator Implements NavigatorOnLine Signature</h1>
<div id='log'></div>
<script>
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), undefined);
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), null);
</script>
......@@ -12,5 +12,5 @@
<h1>Test Interface SharedWorker Signature</h1>
<div id='log'></div>
<script>
level1('webworkers', JSON.parse(document.getElementById('idl').textContent), function(test){return !!window['SharedWorker'] && new SharedWorker('./resources/empty.js');});
level1('webworkers', JSON.parse(document.getElementById('idl').textContent), function(test){return 'SharedWorker' in window && new SharedWorker('./resources/empty.js');});
</script>
......@@ -12,5 +12,5 @@
<h1>Test Interface SharedWorkerGlobalScope Signature</h1>
<div id='log'></div>
<script>
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), undefined);
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), null);
</script>
......@@ -12,5 +12,5 @@
<h1>Test WorkerLocation Implements URLUtilsReadOnly Signature</h1>
<div id='log'></div>
<script>
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), undefined);
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), null);
</script>
......@@ -6,12 +6,11 @@
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script src='/tools/common/level1.js'></script>
<script src='./helpers/WorkerGlobalScope.js'></script>
<script type='text/plain' id='idl'>
[{"type":"implements","target":"WorkerGlobalScope","implements":"WindowBase64","extAttrs":[]},{"type":"interface","name":"WindowBase64","partial":false,"members":[{"type":"operation","getter":false,"setter":false,"creator":false,"deleter":false,"legacycaller":false,"static":false,"stringifier":false,"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"DOMString"},"name":"btoa","arguments":[{"optional":false,"variadic":false,"extAttrs":[],"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"DOMString"},"name":"btoa"}],"extAttrs":[]},{"type":"operation","getter":false,"setter":false,"creator":false,"deleter":false,"legacycaller":false,"static":false,"stringifier":false,"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"DOMString"},"name":"atob","arguments":[{"optional":false,"variadic":false,"extAttrs":[],"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"DOMString"},"name":"atob"}],"extAttrs":[]}],"inheritance":null,"extAttrs":[{"name":"NoInterfaceObject","arguments":null}],"spec":"html5"}]
</script>
<h1>Test WorkerGlobalScope Implements WindowBase64 Signature</h1>
<div id='log'></div>
<script>
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), function(test){return getWorkerGlobalScopeAsync(test);});
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), null);
</script>
......@@ -6,12 +6,11 @@
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script src='/tools/common/level1.js'></script>
<script src='./helpers/WorkerGlobalScope.js'></script>
<script type='text/plain' id='idl'>
[{"type":"implements","target":"WorkerGlobalScope","implements":"WindowTimers","extAttrs":[]},{"type":"interface","name":"WindowTimers","partial":false,"members":[{"type":"operation","getter":false,"setter":false,"creator":false,"deleter":false,"legacycaller":false,"static":false,"stringifier":false,"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"long"},"name":"setTimeout","arguments":[{"optional":false,"variadic":false,"extAttrs":[],"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"Function"},"name":"handler"},{"optional":true,"variadic":false,"extAttrs":[],"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"long"},"name":"timeout"},{"optional":false,"variadic":true,"extAttrs":[],"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"any"},"name":"arguments"}],"extAttrs":[]},{"type":"operation","getter":false,"setter":false,"creator":false,"deleter":false,"legacycaller":false,"static":false,"stringifier":false,"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"long"},"name":"setTimeout","arguments":[{"optional":false,"variadic":false,"extAttrs":[],"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"DOMString"},"name":"handler"},{"optional":true,"variadic":false,"extAttrs":[],"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"long"},"name":"timeout"},{"optional":false,"variadic":true,"extAttrs":[],"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"any"},"name":"arguments"}],"extAttrs":[]},{"type":"operation","getter":false,"setter":false,"creator":false,"deleter":false,"legacycaller":false,"static":false,"stringifier":false,"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"void"},"name":"clearTimeout","arguments":[{"optional":false,"variadic":false,"extAttrs":[],"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"long"},"name":"handle"}],"extAttrs":[]},{"type":"operation","getter":false,"setter":false,"creator":false,"deleter":false,"legacycaller":false,"static":false,"stringifier":false,"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"long"},"name":"setInterval","arguments":[{"optional":false,"variadic":false,"extAttrs":[],"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"Function"},"name":"handler"},{"optional":true,"variadic":false,"extAttrs":[],"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"long"},"name":"timeout"},{"optional":false,"variadic":true,"extAttrs":[],"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"any"},"name":"arguments"}],"extAttrs":[]},{"type":"operation","getter":false,"setter":false,"creator":false,"deleter":false,"legacycaller":false,"static":false,"stringifier":false,"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"long"},"name":"setInterval","arguments":[{"optional":false,"variadic":false,"extAttrs":[],"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"DOMString"},"name":"handler"},{"optional":true,"variadic":false,"extAttrs":[],"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"long"},"name":"timeout"},{"optional":false,"variadic":true,"extAttrs":[],"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"any"},"name":"arguments"}],"extAttrs":[]},{"type":"operation","getter":false,"setter":false,"creator":false,"deleter":false,"legacycaller":false,"static":false,"stringifier":false,"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"void"},"name":"clearInterval","arguments":[{"optional":false,"variadic":false,"extAttrs":[],"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"long"},"name":"handle"}],"extAttrs":[]}],"inheritance":null,"extAttrs":[{"name":"NoInterfaceObject","arguments":null}],"spec":"html5"}]
</script>
<h1>Test WorkerGlobalScope Implements WindowTimers Signature</h1>
<div id='log'></div>
<script>
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), function(test){return getWorkerGlobalScopeAsync(test);});
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), null);
</script>
......@@ -12,5 +12,5 @@
<h1>Test Interface Worker Signature</h1>
<div id='log'></div>
<script>
level1('webworkers', JSON.parse(document.getElementById('idl').textContent), function(test){return !!window['Worker'] && new Worker('./resources/empty.js');});
level1('webworkers', JSON.parse(document.getElementById('idl').textContent), function(test){return 'Worker' in window && new Worker('./resources/empty.js');});
</script>
......@@ -6,12 +6,11 @@
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script src='/tools/common/level1.js'></script>
<script src='./helpers/WorkerGlobalScope.js'></script>
<script type='text/plain' id='idl'>
{"type":"interface","name":"WorkerGlobalScope","partial":true,"members":[{"type":"operation","getter":false,"setter":false,"creator":false,"deleter":false,"legacycaller":false,"static":false,"stringifier":false,"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"void"},"name":"importScripts","arguments":[{"optional":false,"variadic":true,"extAttrs":[],"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"DOMString"},"name":"urls"}],"extAttrs":[]},{"type":"attribute","static":false,"stringifier":false,"inherit":false,"readonly":true,"idlType":{"sequence":false,"generic":null,"nullable":false,"array":false,"union":false,"idlType":"WorkerNavigator"},"name":"navigator","extAttrs":[]}],"extAttrs":[{"name":"Exposed","arguments":null,"rhs":{"type":"identifier","value":"Worker"}}]}
</script>
<h1>Test Interface WorkerGlobalScope Signature</h1>
<div id='log'></div>
<script>
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), function(test){return getWorkerGlobalScopeAsync(test);});
level1Async('webworkers', JSON.parse(document.getElementById('idl').textContent), null);
</script>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment