summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-candidate-moved.html
blob: f59452e0d85c268440335aad16bb9169d067daed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!doctype html>
<title>moving the candidate source</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
var s;
var t = async_test(function(t) {
  var v = document.createElement('video');
  s = document.createElement('source');
  s.src = 'resources/delayed-broken-video.py';
  s.onerror = t.step_func(function() { t.done(); });
  v.appendChild(s); // invokes resource selection
  onload = t.step_func(function() { assert_unreached(); });
});
</script>
<script>
t.step(function() {
  document.body.appendChild(s);
});
</script>