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

Side by Side Diff: LayoutTests/plugins/call-as-function.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <script> 2 <script>
3 if (window.testRunner) 3 if (window.testRunner)
4 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
5 5
6 function runTest() { 6 function runTest() {
7 var c = document.getElementById('console'); 7 var c = document.getElementById('console');
8 var p = document.getElementById('plg'); 8 var p = document.getElementById('plg');
9 var x = p(); 9 var x = p();
10 c.innerHTML += 'plg() = ' + x + '<br>'; 10 c.innerHTML += 'plg() = ' + x + '<br>';
11 11
12 var y = p.testObject(); 12 var y = p.testObject();
13 c.innerHTML += 'plg.testObject() = ' + y + '<br>'; 13 c.innerHTML += 'plg.testObject() = ' + y + '<br>';
14 } 14 }
15 </script> 15 </script>
16 <body onload='runTest()'> 16 <body onload='runTest()'>
17 <embed id="plg" type="application/x-webkit-test-netscape"></embed><P> 17 <embed id="plg" type="application/x-webkit-test-netscape"></embed><P>
18 18
19 This tests that call a plugin object (NPObject) as a function invokes 19 This tests that call a plugin object (NPObject) as a function invokes
20 invokeDefault() function on the object. 20 invokeDefault() function on the object.
21 21
22 <div id="console"></div> 22 <div id="console"></div>
23 </body> 23 </body>
24 </html> 24 </html>
25 25
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698