diff options
Diffstat (limited to 'testing/web-platform/tests/workers/interfaces.worker.js')
-rw-r--r-- | testing/web-platform/tests/workers/interfaces.worker.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/web-platform/tests/workers/interfaces.worker.js b/testing/web-platform/tests/workers/interfaces.worker.js new file mode 100644 index 000000000..f07669ba7 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces.worker.js @@ -0,0 +1,20 @@ +"use strict"; + +importScripts("/resources/testharness.js"); +importScripts("/resources/WebIDLParser.js", "/resources/idlharness.js"); + +var request = new XMLHttpRequest(); +request.onload = function() { + var idlArray = new IdlArray(); + var idls = request.responseText; + idlArray.add_idls(idls); + idlArray.add_objects({ + DedicatedWorkerGlobalScope: ['self'], + WorkerNavigator: ['self.navigator'], + WorkerLocation: ['self.location'], + }); + idlArray.test(); + done(); +}; +request.open("GET", "interfaces.idl"); +request.send(); |