https://github.com/web-platform-tests/wpt
Raw File
Tip revision: b1e9f14334bb9e17d158f1eb9a598967a80a1236 authored by Tarun Bansal on 09 April 2018, 19:19:04 UTC
Add external WPT test for cross-origin requests
Tip revision: b1e9f14
WorkerLocation_search_empty.htm
<!DOCTYPE html>
<title> WorkerLocation.search with empty &lt;query&gt; </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
async_test(function(t) {
  var worker = new Worker("./support/WorkerLocation.js?");
  worker.onmessage = t.step_func_done(function(e) {
    assert_equals(e.data.search, "");
  });
});
</script>
back to top