4 <script src=
"../../../resources/js-test.js"></script>
6 description("Check that HTMLObjectElement.data updates trigger refresh of element.");
8 window
.jsTestIsAsync
= true;
10 testRunner
.dumpAsText();
14 testPassed("<object> updated and loaded.");
19 var url
= "resources/message-ping-on-load.html";
21 obj
= document
.getElementById("obj");
22 shouldBeEqualToString("var u = '" + url
+ "'; obj.data = u; obj.data.substr(obj.data.indexOf(u))", url
);
26 <body onmessage=
"notify()" onload=
"runTest()">
27 <object id=
"obj" type=
"text/html" data=
"data:text/html,"></object>