Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: LayoutTests/fast/dom/HTMLObjectElement/update-data.html

Issue 135103003: Updating <object> upon changing "data", "classid", "type" attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase + method rename Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698