OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script> | 4 <script> |
5 window.isOnErrorTest = true; | 5 window.isOnErrorTest = true; |
6 </script> | 6 </script> |
7 <script src="../../resources/js-test.js"></script> | 7 <script src="../../resources/js-test.js"></script> |
8 <script> | 8 <script> |
9 function buildInlineWorker() { | 9 function buildInlineWorker() { |
10 var script = document.getElementById('workerCode').innerText; | 10 var script = document.getElementById('workerCode').innerText; |
(...skipping 12 matching lines...) Expand all Loading... |
23 <body> | 23 <body> |
24 <!-- This script's body will be used to build a Blob URL to use as a Worker.
--> | 24 <!-- This script's body will be used to build a Blob URL to use as a Worker.
--> |
25 <script id="workerCode" type="text/plain"> | 25 <script id="workerCode" type="text/plain"> |
26 console.log("log"); | 26 console.log("log"); |
27 console.log(typeof console.log); | 27 console.log(typeof console.log); |
28 console.log(console.log.toString()); | 28 console.log(console.log.toString()); |
29 console.error("error"); | 29 console.error("error"); |
30 console.warn("warn"); | 30 console.warn("warn"); |
31 console.info("info"); | 31 console.info("info"); |
32 console.debug("debug"); | 32 console.debug("debug"); |
| 33 console.count("count"); |
| 34 console.time("time"); |
33 /* | 35 /* |
34 // FIXME(slightlyoff): these aren't getting logged properly from here! | 36 // FIXME(slightlyoff): these aren't getting logged properly from here! |
| 37 console.timeEnd("time"); |
35 console.assert(true); | 38 console.assert(true); |
36 console.assert(false); | 39 console.assert(false); |
37 console.markTimeline("markTimeline"); | 40 console.markTimeline("markTimeline"); |
38 */ | 41 */ |
39 this.postMessage({ done: true }); | 42 this.postMessage({ done: true }); |
40 </script> | 43 </script> |
41 <script> | 44 <script> |
42 window.jsTestIsAsync = true; | 45 window.jsTestIsAsync = true; |
43 description("This tests that 'console.log' and friends function correctl
y from workers."); | 46 description("This tests that 'console.log' and friends function correctl
y from workers."); |
44 buildInlineWorker(); | 47 buildInlineWorker(); |
45 </script> | 48 </script> |
46 </body> | 49 </body> |
47 </html> | 50 </html> |
OLD | NEW |