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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-linkify-message-location.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script> 4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script> 5 <script>
6 function foo() 6 function foo()
7 { 7 {
8 console.trace(239); 8 console.trace(239);
9 } 9 }
10 //# sourceURL=foo.js 10 //# sourceURL=foo.js
11 </script> 11 </script>
12 <script> 12 <script>
13 function boo() 13 function boo()
14 { 14 {
15 foo(); 15 foo();
16 } 16 }
17 //# sourceURL=boo.js 17 //# sourceURL=boo.js
18 </script> 18 </script>
19 <script> 19 <script>
20 20
21 function test() 21 function test()
22 { 22 {
23 InspectorTest.evaluateInPage("boo()", step1); 23 InspectorTest.evaluateInPage("boo()", step1);
24 24
25 function step1() 25 function step1()
26 { 26 {
27 dumpConsoleMessageURLs(); 27 dumpConsoleMessageURLs();
28 28
29 InspectorTest.addSniffer(WebInspector.BlackboxManager.prototype, "_patte rnChangeFinishedForTests", step2); 29 InspectorTest.addSniffer(Bindings.BlackboxManager.prototype, "_patternCh angeFinishedForTests", step2);
30 var frameworkRegexString = "foo\\.js"; 30 var frameworkRegexString = "foo\\.js";
31 WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegex String); 31 Common.settingForTest("skipStackFramesPattern").set(frameworkRegexString );
32 } 32 }
33 33
34 function step2() 34 function step2()
35 { 35 {
36 dumpConsoleMessageURLs(); 36 dumpConsoleMessageURLs();
37 InspectorTest.addSniffer(WebInspector.BlackboxManager.prototype, "_patte rnChangeFinishedForTests", step3); 37 InspectorTest.addSniffer(Bindings.BlackboxManager.prototype, "_patternCh angeFinishedForTests", step3);
38 var frameworkRegexString = "foo\\.js|boo\\.js"; 38 var frameworkRegexString = "foo\\.js|boo\\.js";
39 WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegex String); 39 Common.settingForTest("skipStackFramesPattern").set(frameworkRegexString );
40 } 40 }
41 41
42 function step3() 42 function step3()
43 { 43 {
44 dumpConsoleMessageURLs(); 44 dumpConsoleMessageURLs();
45 InspectorTest.addSniffer(WebInspector.BlackboxManager.prototype, "_patte rnChangeFinishedForTests", step4); 45 InspectorTest.addSniffer(Bindings.BlackboxManager.prototype, "_patternCh angeFinishedForTests", step4);
46 var frameworkRegexString = ""; 46 var frameworkRegexString = "";
47 WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegex String); 47 Common.settingForTest("skipStackFramesPattern").set(frameworkRegexString );
48 } 48 }
49 49
50 function step4() 50 function step4()
51 { 51 {
52 dumpConsoleMessageURLs(); 52 dumpConsoleMessageURLs();
53 InspectorTest.completeTest(); 53 InspectorTest.completeTest();
54 } 54 }
55 55
56 function dumpConsoleMessageURLs() 56 function dumpConsoleMessageURLs()
57 { 57 {
58 var messages = WebInspector.ConsoleView.instance()._visibleViewMessages; 58 var messages = Console.ConsoleView.instance()._visibleViewMessages;
59 for (var i = 0; i < messages.length; ++i) { 59 for (var i = 0; i < messages.length; ++i) {
60 var element = messages[i].toMessageElement(); 60 var element = messages[i].toMessageElement();
61 var anchor = element.querySelector(".console-message-url"); 61 var anchor = element.querySelector(".console-message-url");
62 InspectorTest.addResult(anchor.textContent.replace(/VM\d+/g, "VM")); 62 InspectorTest.addResult(anchor.textContent.replace(/VM\d+/g, "VM"));
63 } 63 }
64 } 64 }
65 } 65 }
66 </script> 66 </script>
67 </head> 67 </head>
68 <body onload="runTest()"> 68 <body onload="runTest()">
69 <p> 69 <p>
70 Test that console.log() would linkify its location in respect with blackboxing. 70 Test that console.log() would linkify its location in respect with blackboxing.
71 </p> 71 </p>
72 </body> 72 </body>
73 </html> 73 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698