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

Side by Side Diff: third_party/WebKit/LayoutTests/plugins/override-node-method.html

Issue 1821103002: Migrate a bunch of LayoutTests from NPAPI to PPAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_open-and-close-window-with-plugin
Patch Set: rebase; fix expectations for plugin-initiate-popup-window-expected Created 4 years, 9 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
1 <html> 1 <html>
2 <body> 2 <body>
3 <embed name="plg" type="application/x-webkit-test-netscape"></embed> 3 <embed name="plg" type="application/x-blink-deprecated-test-plugin"></embed>
4 <p>Test that a plugin can override Node methods of its element. This also means that the plugin 4 <p>Test that a plugin can override Node methods of its element. This also means that the plugin
5 is instantiated when accessing properties and methods of its owner element.</p> 5 is instantiated when accessing properties and methods of its owner element.</p>
6 <p>Should alert PASS.</p> 6 <p>Should alert PASS.</p>
7 <script> 7 <script>
8 if (window.testRunner) 8 if (window.testRunner)
9 testRunner.dumpAsText(); 9 testRunner.dumpAsText();
10 10
11 function pluginCallback() { alert("PASS") } 11 function pluginCallback() { alert("PASS") }
12 12
13 try { 13 try {
14 plg.normalize(); 14 plg.normalize();
15 } catch (ex) { 15 } catch (ex) {
16 alert("Exception: " + ex.description + ". Test plugin was not found"); 16 alert("Exception: " + ex.description + ". Test plugin was not found");
17 } 17 }
18 </script> 18 </script>
19 </body> 19 </body>
20 </html> 20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698