OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 <script> | 5 <script> |
6 if (window.testRunner) { | 6 if (window.testRunner) { |
7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
8 testRunner.waitUntilDone(); | 8 testRunner.waitUntilDone(); |
9 } | 9 } |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 <body> | 27 <body> |
28 <!-- This script's body will be used to build a Blob URL to use as a Worker.
--> | 28 <!-- This script's body will be used to build a Blob URL to use as a Worker.
--> |
29 <script id="workerCode" type="text/plain"> | 29 <script id="workerCode" type="text/plain"> |
30 console.log("log"); | 30 console.log("log"); |
31 console.log(typeof console.log); | 31 console.log(typeof console.log); |
32 console.log(console.log.toString()); | 32 console.log(console.log.toString()); |
33 console.error("error"); | 33 console.error("error"); |
34 console.warn("warn"); | 34 console.warn("warn"); |
35 console.info("info"); | 35 console.info("info"); |
36 console.debug("debug"); | 36 console.debug("debug"); |
| 37 console.count("count"); |
| 38 console.time("time"); |
37 /* | 39 /* |
38 // FIXME(slightlyoff): these aren't getting logged properly from here! | 40 // FIXME(slightlyoff): these aren't getting logged properly from here! |
| 41 console.timeEnd("time"); |
39 console.assert(true); | 42 console.assert(true); |
40 console.assert(false); | 43 console.assert(false); |
41 console.markTimeline("markTimeline"); | 44 console.markTimeline("markTimeline"); |
42 */ | 45 */ |
43 self.addEventListener("connect", function (e) { | 46 self.addEventListener("connect", function (e) { |
44 var port = e.ports[0]; | 47 var port = e.ports[0]; |
45 port.postMessage({ done: true }); | 48 port.postMessage({ done: true }); |
46 }); | 49 }); |
47 </script> | 50 </script> |
48 <script> | 51 <script> |
49 window.jsTestIsAsync = true; | 52 window.jsTestIsAsync = true; |
50 description("This tests that 'console.log' and friends function correctl
y from workers."); | 53 description("This tests that 'console.log' and friends function correctl
y from workers."); |
51 buildInlineSharedWorker(); | 54 buildInlineSharedWorker(); |
52 </script> | 55 </script> |
53 </body> | 56 </body> |
54 </html> | 57 </html> |
OLD | NEW |