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

Side by Side Diff: LayoutTests/inspector/sources/debugger/show-function-definition.html

Issue 1104233004: DevTools: rebaseline inspector tests with poor expectations (2). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments addressed Created 5 years, 7 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
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 6
7 function jumpToMe() 7 function jumpToMe()
8 { 8 {
9 var result = 12345; 9 var result = 12345;
10 return window.foo || result; 10 return window.foo || result;
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 }, 38 },
39 39
40 function testDumpFunctionDefinition(next) 40 function testDumpFunctionDefinition(next)
41 { 41 {
42 InspectorTest.waitUntilNthMessageReceived(2, onConsoleMessagesReceiv ed); 42 InspectorTest.waitUntilNthMessageReceived(2, onConsoleMessagesReceiv ed);
43 WebInspector.ConsoleModel.evaluateCommandInConsole(WebInspector.cont ext.flavor(WebInspector.ExecutionContext), "jumpToMe"); 43 WebInspector.ConsoleModel.evaluateCommandInConsole(WebInspector.cont ext.flavor(WebInspector.ExecutionContext), "jumpToMe");
44 44
45 function onConsoleMessagesReceived() 45 function onConsoleMessagesReceived()
46 { 46 {
47 var messages = []; 47 InspectorTest.runAfterPendingDispatches(function() {
48 InspectorTest.disableConsoleViewport(); 48 var messages = [];
49 var viewMessages = WebInspector.ConsolePanel._view()._visibleVie wMessages; 49 InspectorTest.disableConsoleViewport();
50 for (var i = 0; i < viewMessages.length; ++i) { 50 var viewMessages = WebInspector.ConsolePanel._view()._visibl eViewMessages;
51 var uiMessage = viewMessages[i]; 51 for (var i = 0; i < viewMessages.length; ++i) {
52 var element = uiMessage.contentElement(); 52 var uiMessage = viewMessages[i];
53 messages.push(element.textContent); 53 var element = uiMessage.contentElement();
54 } 54 messages.push(element.deepTextContent());
55 }
55 56
56 InspectorTest.addResult(messages.join("\n")); 57 InspectorTest.addResult(messages.join("\n"));
57 58
58 next(); 59 next();
60 });
59 } 61 }
60 } 62 }
61 ]); 63 ]);
62 } 64 }
63 65
64 </script> 66 </script>
65 </head> 67 </head>
66 68
67 <body onload="runTest()"> 69 <body onload="runTest()">
68 <p> 70 <p>
69 Tests that "Show Function Definition" jumps to the correct location. 71 Tests that "Show Function Definition" jumps to the correct location.
70 </p> 72 </p>
71 73
72 </body> 74 </body>
73 </html> 75 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698