| <html> |
| <head> |
| <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| <script> |
| |
| var foo = 123 |
| |
| var test = function() |
| { |
| var watchExpressionsPane = self.runtime.sharedInstance(Sources.WatchExpressionsSidebarPane); |
| UI.panels.sources._sidebarPaneStack.showView(UI.panels.sources._watchSidebarPane).then(() => { |
| watchExpressionsPane.doUpdate(); |
| watchExpressionsPane._createWatchExpression("#$%"); |
| watchExpressionsPane._saveExpressions(); |
| InspectorTest.deprecatedRunAfterPendingDispatches(step1); |
| }); |
| |
| |
| function step1() |
| { |
| InspectorTest.addResult(watchExpressionsPane.contentElement.textContent.indexOf("<not available>") !== -1 ? "SUCCESS" : "FAILED"); |
| |
| // Clear watch expressions after execution. |
| watchExpressionsPane._deleteAllButtonClicked(); |
| InspectorTest.completeTest(); |
| } |
| } |
| |
| </script> |
| </head> |
| |
| <body onload="runTest()"> |
| <p> |
| Tests that watches pane renders errors in red. |
| </p> |
| |
| </body> |
| </html> |