Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that disables it given conditions:
- debug : unstable
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-candidate-moved.html - WPT Dashboard Interop Dashboard
<!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>