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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/console-resource-errors.html

Issue 2348583004: DevTools: remove unused ConsoleViewMessage.toString() (Closed)
Patch Set: use deeptextcontent for all Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-uncaught-exception.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="inspector-test.js"></script> 3 <script src="inspector-test.js"></script>
4 <script src="console-test.js"></script> 4 <script src="console-test.js"></script>
5 5
6 <script> 6 <script>
7 7
8 function performActions() 8 function performActions()
9 { 9 {
10 loadXHR(); 10 loadXHR();
(...skipping 14 matching lines...) Expand all
25 document.body.appendChild(iframe); 25 document.body.appendChild(iframe);
26 } 26 }
27 27
28 function test() 28 function test()
29 { 29 {
30 InspectorTest.addConsoleViewSniffer(addMessage, true); 30 InspectorTest.addConsoleViewSniffer(addMessage, true);
31 31
32 function addMessage(uiMessage) 32 function addMessage(uiMessage)
33 { 33 {
34 // There will be only one such message. 34 // There will be only one such message.
35 if (uiMessage.toString().indexOf("non-existent-iframe") !== -1) 35 if (uiMessage.element().deepTextContent().indexOf("non-existent-iframe") !== -1)
36 InspectorTest.expandConsoleMessages(onExpandedMessages); 36 InspectorTest.expandConsoleMessages(onExpandedMessages);
37 } 37 }
38 38
39 function onExpandedMessages() 39 function onExpandedMessages()
40 { 40 {
41 InspectorTest.dumpConsoleMessagesWithClasses(true); 41 InspectorTest.dumpConsoleMessagesWithClasses(true);
42 InspectorTest.completeTest(); 42 InspectorTest.completeTest();
43 } 43 }
44 44
45 InspectorTest.evaluateInPage("performActions()"); 45 InspectorTest.evaluateInPage("performActions()");
46 } 46 }
47 47
48 </script> 48 </script>
49 </head> 49 </head>
50 50
51 <body onload="runTest()"> 51 <body onload="runTest()">
52 <p> 52 <p>
53 Tests that errors to load a resource cause error messages to be logged to consol e. 53 Tests that errors to load a resource cause error messages to be logged to consol e.
54 </p> 54 </p>
55 </body> 55 </body>
56 </html> 56 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-uncaught-exception.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698