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

Side by Side 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 unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698