https://github.com/web-platform-tests/wpt
Raw File
Tip revision: f6787be668af17ecfe796e15c6cf5a7e3bc656af authored by Eric Willigers on 13 April 2018, 15:13:19 UTC
Accept variation in serialization of 'background'
Tip revision: f6787be
Worker_NosniffErr.htm
<!DOCTYPE html>
<title> Worker with nosniff X-Content-Type-Options header </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/nosiniff-error-worker.py");
  worker.onerror = t.step_func_done(function(e) {
    assert_equals(e.type, 'error');
  });
});
</script>
back to top