| Index: third_party/WebKit/LayoutTests/imported/wpt/workers/constructors/SharedWorker/interface-objects.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/workers/constructors/SharedWorker/interface-objects.html b/third_party/WebKit/LayoutTests/imported/wpt/workers/constructors/SharedWorker/interface-objects.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e91b2dc6a8c61f0f050ecafdca7c2411116ab89d
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/workers/constructors/SharedWorker/interface-objects.html
|
| @@ -0,0 +1,41 @@
|
| +<!--
|
| +var prt;
|
| +function handleCall(e) {
|
| + var log = [];
|
| + for (var i = 0; i < e.data.length; ++i) {
|
| + if (!(e.data[i] in self))
|
| + log.push(e.data[i]);
|
| + }
|
| + prt.postMessage('These were missing: '+log.join(', '));
|
| +}
|
| +onconnect = function(e) {
|
| + prt = e.ports[0];
|
| + prt.onmessage = handleCall;
|
| +};
|
| +/*
|
| +-->
|
| +<!doctype html>
|
| +<title>expected interface objects/constructors</title>
|
| +<script src="/resources/testharness.js"></script>
|
| +<script src="/resources/testharnessreport.js"></script>
|
| +<div id="log"></div>
|
| +<script>
|
| +(async_test()).step(function() {
|
| + var expected = 'XMLHttpRequest WebSocket EventSource MessageChannel Worker SharedWorker ApplicationCache'.split(' ');
|
| + var supported = [];
|
| + for (var i = 0; i < expected.length; ++i) {
|
| + if (expected[i] in window)
|
| + supported.push(expected[i]);
|
| + }
|
| + var worker = new SharedWorker('#');
|
| + worker.port.start();
|
| + worker.port.postMessage(supported);
|
| + worker.port.addEventListener('message', this.step_func(function(e) {
|
| + assert_equals(e.data, '');
|
| + this.done();
|
| + }), false);
|
| +});
|
| +</script>
|
| +<!--
|
| +*/
|
| +//-->
|
|
|