summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fetch/orb/tentative/status.sub.html
blob: a62bdeb35e469a68aa09bd7f0c29f660303b18c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'use strict';

<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<script>
async_test(function(t) {
  let url = "http://{{domains[www1]}}:{{ports[http][0]}}"
  url = `${url}/fetch/orb/resources/sound.mp3?pipe=status(301)|header(Content-Type,)`

  const video = document.createElement("video");
  video.src = url;
  video.onerror = t.step_func_done();
  video.onload = t.unreached_func("Unexpected error event");
  document.body.appendChild(video);
}, "ORB should block initial media requests with status not 200 or 206");
</script>