Web Inspector: REGRESSION (r238602): Elements: deleting the last child of a collapsed...
[WebKit-https.git] / LayoutTests / workers / bomb-with-v8.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <script>
8 description("Starts a lot of workers that do crazy things.");
9 if (window.testRunner)
10     testRunner.waitUntilDone();
11
12 var count = 100;
13 var verbose = false;
14
15 var numWorkers = 0;
16 function startWorker(file)
17 {
18     debug("Starting worker: " + file);
19     numWorkers++;
20     var worker = new Worker(file);
21     worker.onmessage = function(event) {
22         if (event.data == "done") {
23             if (verbose)
24                 debug("Finished worker: " + file);
25             if (--numWorkers)
26                 return;
27             debug("All workers done!");
28             done();
29             return;
30         }
31         
32         debug("Event from " + file + ": " + event.data);
33     };
34 }
35
36 function start()
37 {
38     startWorker("tests/3d-cube.js");
39     startWorker("tests/3d-morph.js");
40     startWorker("tests/3d-raytrace.js");
41     startWorker("tests/access-binary-trees.js");
42     startWorker("tests/access-fannkuch.js");
43     startWorker("tests/access-nbody.js");
44     startWorker("tests/access-nsieve.js");
45     startWorker("tests/bitops-3bit-bits-in-byte.js");
46     startWorker("tests/bitops-bits-in-byte.js");
47     startWorker("tests/bitops-bitwise-and.js");
48     startWorker("tests/bitops-nsieve-bits.js");
49     startWorker("tests/controlflow-recursive.js");
50     startWorker("tests/crypto-aes.js");
51     startWorker("tests/crypto-md5.js");
52     startWorker("tests/crypto-sha1.js");
53     startWorker("tests/date-format-tofte.js");
54     startWorker("tests/date-format-xparb.js");
55     startWorker("tests/math-cordic.js");
56     startWorker("tests/math-partial-sums.js");
57     startWorker("tests/math-spectral-norm.js");
58     startWorker("tests/regexp-dna.js");
59     startWorker("tests/string-base64.js");
60     startWorker("tests/string-fasta.js");
61     startWorker("tests/string-tagcloud.js");
62     startWorker("tests/string-unpack-code.js");
63     startWorker("tests/string-validate-input.js");
64     startWorker("tests/v8-crypto.js");
65     startWorker("tests/v8-deltablue.js");
66     startWorker("tests/v8-earley-boyer.js");
67     startWorker("tests/v8-raytrace.js");
68     startWorker("tests/v8-regexp.js");
69     startWorker("tests/v8-richards.js");
70     startWorker("tests/v8-splay.js");
71 }
72
73 function done()
74 {
75     if (!--count) {
76         debug("Done with test!");
77         if (window.testRunner)
78             testRunner.notifyDone();
79         return;
80     }
81     
82     start();
83 }
84
85 start();
86 </script>
87 <script src="../resources/js-test-post.js"></script>
88 </body>
89 </html>