2 <html class=
"reftest-wait">
4 <link rel=
"author" title=
"Joey Arhar" href=
"mailto:jarhar@chromium.org">
5 <link rel=
"help" href=
"https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-embed-element">
6 <link rel=
"help" href=
"http://crbug.com/1035330">
8 <script src=
"/resources/testharness.js"></script>
9 <script src=
"/resources/testharnessreport.js"></script>
13 promise_test(async () => {
14 const embed
= document
.createElement('embed');
15 let loadPromise
= new Promise(resolve
=> embed
.onload
= resolve
);
16 embed
.src
= '/media/white.mp4';
17 document
.body
.appendChild(embed
);
21 loadPromise
= new Promise(resolve
=> embed
.onload
= resolve
);
22 embed
.src
= '/media/white.webm';
25 }, 'Verifies that embed elements reload with new content when the src attribute is changed.');