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

Side by Side Diff: LayoutTests/fast/workers/shared-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 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
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/workers/worker-console-log.html » ('j') | Source/core/frame/ConsoleBase.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698