OLD | NEW |
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 = self.runtime.sharedInstance(WebInspector.WatchExp
ressionsSidebarPane); |
11 watchExpressionsPane.revealView(); | 11 WebInspector.panels.sources._sidebarPaneStack.showView(WebInspector.panels.s
ources._watchSidebarPane).then(() => { |
12 watchExpressionsPane.addExpression("#$%"); | 12 watchExpressionsPane.doUpdate(); |
| 13 watchExpressionsPane._createWatchExpression("#$%"); |
| 14 watchExpressionsPane._saveExpressions(); |
| 15 InspectorTest.deprecatedRunAfterPendingDispatches(step1); |
| 16 }); |
13 | 17 |
14 InspectorTest.deprecatedRunAfterPendingDispatches(step1); | |
15 | 18 |
16 function step1() | 19 function step1() |
17 { | 20 { |
18 InspectorTest.addResult(watchExpressionsPane.element.textContent.indexOf
("<not available>") !== -1 ? "SUCCESS" : "FAILED"); | 21 InspectorTest.addResult(watchExpressionsPane.element.textContent.indexOf
("<not available>") !== -1 ? "SUCCESS" : "FAILED"); |
19 | 22 |
20 // Clear watch expressions after execution. | 23 // Clear watch expressions after execution. |
21 watchExpressionsPane._deleteAllButtonClicked(); | 24 watchExpressionsPane._deleteAllButtonClicked(); |
22 InspectorTest.completeTest(); | 25 InspectorTest.completeTest(); |
23 } | 26 } |
24 } | 27 } |
25 | 28 |
26 </script> | 29 </script> |
27 </head> | 30 </head> |
28 | 31 |
29 <body onload="runTest()"> | 32 <body onload="runTest()"> |
30 <p> | 33 <p> |
31 Tests that watches pane renders errors in red. | 34 Tests that watches pane renders errors in red. |
32 </p> | 35 </p> |
33 | 36 |
34 </body> | 37 </body> |
35 </html> | 38 </html> |
OLD | NEW |