Index: LayoutTests/fast/dom/HTMLObjectElement/update-data.html |
diff --git a/LayoutTests/fast/dom/HTMLObjectElement/update-data.html b/LayoutTests/fast/dom/HTMLObjectElement/update-data.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3ab7724b9c73ad0d2e5c8681525e638c52402ba6 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/HTMLObjectElement/update-data.html |
@@ -0,0 +1,29 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="../../../resources/js-test.js"></script> |
+<script> |
+description("Check that HTMLObjectElement.data updates trigger refresh of element."); |
+ |
+window.jsTestIsAsync = true; |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+function notify() |
+{ |
+ testPassed("<object> updated and loaded."); |
+ finishJSTest(); |
+} |
+ |
+var obj; |
+var url = "resources/message-ping-on-load.html"; |
+function runTest() { |
+ obj = document.getElementById("obj"); |
+ shouldBeEqualToString("var u = '" + url + "'; obj.data = u; obj.data.substr(obj.data.indexOf(u))", url); |
+} |
+</script> |
+</head> |
+<body onmessage="notify()" onload="runTest()"> |
+<object id="obj" type="text/html" data="data:text/html,"></object> |
+</body> |
+</html> |