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

Side by Side Diff: LayoutTests/plugins/embed-inside-object.html

Issue 61213008: Revert "Finding an <object> element by name only works it has no children other than <param> elemen… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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
1 <html> 1 <html>
2 <script> 2 <script>
3 function debug(str) { 3 function debug(str) {
4 document.getElementById('console').innerHTML += str + "<br>"; 4 document.getElementById('console').innerHTML += str + "<br>";
5 } 5 }
6 6
7 function pluginCallback() { 7 function pluginCallback() {
8 debug('SUCCESS'); 8 debug('SUCCESS');
9 if (window.testRunner) 9 if (window.testRunner)
10 testRunner.notifyDone(); 10 testRunner.notifyDone();
11 } 11 }
12 12
13 function runTest() { 13 function runTest() {
14 if (window.testRunner) { 14 if (window.testRunner) {
15 testRunner.dumpAsText(); 15 testRunner.dumpAsText();
16 testRunner.waitUntilDone(); 16 testRunner.waitUntilDone();
17 } 17 }
18 18
19 var plugins = document.plugin; 19 var plugin = document.plugin;
20 20
21 debug('plugin object is: ' + plugins[1]); 21 debug('plugin object is: ' + plugin);
22 plugins[1].getURL('javascript:pluginCallback()', '_self') 22 plugin.getURL('javascript:pluginCallback()', '_self')
23 } 23 }
24 </script> 24 </script>
25 <body onload="runTest()"> 25 <body onload="runTest()">
26 <object name="plugin" type="application/x-webkit-test-netscape"> 26 <object name="plugin" type="application/x-webkit-test-netscape">
27 <span> 27 <span>
28 <embed name="plugin" type="application/x-webkit-test-netscape"></embed> 28 <embed name="plugin" type="application/x-webkit-test-netscape"></embed>
29 </span> 29 </span>
30 </object> 30 </object>
31 <div> 31 <div>
32 This tests that it's possible to control an embed that is nested inside an o bject with a span tag in between. 32 This tests that it's possible to control an embed that is nested inside an o bject with a span tag in between.
33 </div> 33 </div>
34 <div id="console"> 34 <div id="console">
35 </div> 35 </div>
36 </body> 36 </body>
37 </html> 37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698