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

Side by Side Diff: LayoutTests/fast/workers/worker-console-log.html

Issue 562683003: Tidy up ConsoleMessage callstack inclusion, fix Worker console crashes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698