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