OLD | NEW |
(Empty) | |
| 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 elemen
t."); |
| 7 |
| 8 window.jsTestIsAsync = true; |
| 9 if (window.testRunner) |
| 10 testRunner.dumpAsText(); |
| 11 |
| 12 function notify() |
| 13 { |
| 14 testPassed("<object> updated and loaded."); |
| 15 finishJSTest(); |
| 16 } |
| 17 |
| 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); |
| 23 } |
| 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> |
OLD | NEW |