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

Side by Side Diff: LayoutTests/plugins/npruntime/construct.html

Issue 1319473007: Delete a bunch of NPAPI layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 3 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
(Empty)
1 <html>
2 <script>
3 function runTest()
4 {
5 if (window.testRunner)
6 testRunner.dumpAsText();
7
8 var successCount = 0;
9 var plugin = document.getElementById("testPlugin");
10
11 var array = plugin.testConstruct(Array, 1, 2, 3, 4);
12 if (array instanceof Array) {
13 successCount++
14
15 if (array.length == 4)
16 successCount++
17 }
18
19 var n = new plugin.testObject();
20
21 if (n.objectPointer == plugin.testObject.objectPointer)
22 successCount++;
23
24
25 if (successCount == 3)
26 document.getElementById('result').innerHTML = 'SUCCESS'
27 }
28 </script>
29
30 <body onload="runTest();">
31 This tests that NPN_Construct works correctly, and that it is possible to use "n ew" with NPObjects that implement construct.
32
33 <div id="result">FAILURE</div>
34 <embed id="testPlugin" type="application/x-webkit-test-netscape" width="200" hei ght="200"></embed>
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698