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

Side by Side Diff: LayoutTests/inspector/sources/debugger/error-in-watch-expressions.html

Issue 905743003: DevTools: Reimplemented WI.WatchExpressionsSidebarPane (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 5 years, 10 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
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/watch-expressions-panel-switch.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="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script> 4 <script>
5 5
6 var foo = 123 6 var foo = 123
7 7
8 var test = function() 8 var test = function()
9 { 9 {
10 var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watchExp ressions; 10 var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watchExp ressions;
11 watchExpressionsPane.expand(); 11 watchExpressionsPane.expand();
12 12 watchExpressionsPane.addExpression("#$%");
13 var watchExpressionsSection = watchExpressionsPane.section;
14 watchExpressionsSection.watchExpressions = [];
15 watchExpressionsSection.watchExpressions.push("#$%");
16 watchExpressionsSection.update();
17 13
18 InspectorTest.runAfterPendingDispatches(step1); 14 InspectorTest.runAfterPendingDispatches(step1);
19 15
20 function step1() 16 function step1()
21 { 17 {
22 InspectorTest.addResult(watchExpressionsSection.element.textContent.inde xOf("<not available>") !== -1 ? "SUCCESS" : "FAILED"); 18 InspectorTest.addResult(watchExpressionsPane.bodyElement.textContent.ind exOf("<not available>") !== -1 ? "SUCCESS" : "FAILED");
23 19
24 // Clear watch expressions after execution. 20 // Clear watch expressions after execution.
25 watchExpressionsSection.watchExpressions = []; 21 watchExpressionsPane._deleteAllButtonClicked();
26 watchExpressionsSection.update();
27
28 InspectorTest.completeTest(); 22 InspectorTest.completeTest();
29 } 23 }
30 } 24 }
31 25
32 </script> 26 </script>
33 </head> 27 </head>
34 28
35 <body onload="runTest()"> 29 <body onload="runTest()">
36 <p> 30 <p>
37 Tests that watches pane renders errors in red. 31 Tests that watches pane renders errors in red.
38 </p> 32 </p>
39 33
40 </body> 34 </body>
41 </html> 35 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/watch-expressions-panel-switch.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698