Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLObjectElement / update-data.html
blob3ab7724b9c73ad0d2e5c8681525e638c52402ba6
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 <script>
6 description("Check that HTMLObjectElement.data updates trigger refresh of element.");
8 window.jsTestIsAsync = true;
9 if (window.testRunner)
10 testRunner.dumpAsText();
12 function notify()
14 testPassed("<object> updated and loaded.");
15 finishJSTest();
18 var obj;
19 var url = "resources/message-ping-on-load.html";
20 function runTest() {
21 obj = document.getElementById("obj");
22 shouldBeEqualToString("var u = '" + url + "'; obj.data = u; obj.data.substr(obj.data.indexOf(u))", url);
24 </script>
25 </head>
26 <body onmessage="notify()" onload="runTest()">
27 <object id="obj" type="text/html" data="data:text/html,"></object>
28 </body>
29 </html>