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