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

Side by Side Diff: LayoutTests/plugins/destroy-plugin-from-callback.html

Issue 1207793002: Remove LayoutTests/plugins/destroy-plugin-from-callback.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 <body onload="test()">
3 <embed name="plg" type="application/x-webkit-test-netscape">
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
7
8 function gc()
9 {
10 if (window.GCController)
11 return GCController.collect();
12
13 for (var i = 0; i < 10000; i++) { // > force garbage collection (FF requ ires about 9K allocations before a collect)
14 var s = new String("abc");
15 }
16 }
17
18 var recursionsRemaining = 2;
19
20 function pluginCallback()
21 {
22 if (--recursionsRemaining)
23 test();
24 else {
25 document.write("PASS if no crash.<br>");
26 gc();
27 }
28 }
29
30 function test()
31 {
32 try {
33 plg.testCallback("pluginCallback");
34 } catch (ex) {
35 alert("Exception: " + ex.description + ". Test plugin was not found" );
36 }
37 }
38 </script>
39 </body>
40 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/plugins/destroy-plugin-from-callback-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698