| 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 = WebInspector.panels.sources.sidebarPanes.watchExp
ressions; |
| 11 watchExpressionsPane.requestReveal(); | 11 watchExpressionsPane.revealWidget(); |
| 12 watchExpressionsPane.addExpression("#$%"); | 12 watchExpressionsPane.addExpression("#$%"); |
| 13 | 13 |
| 14 InspectorTest.deprecatedRunAfterPendingDispatches(step1); | 14 InspectorTest.deprecatedRunAfterPendingDispatches(step1); |
| 15 | 15 |
| 16 function step1() | 16 function step1() |
| 17 { | 17 { |
| 18 InspectorTest.addResult(watchExpressionsPane.element.textContent.indexOf
("<not available>") !== -1 ? "SUCCESS" : "FAILED"); | 18 InspectorTest.addResult(watchExpressionsPane.element.textContent.indexOf
("<not available>") !== -1 ? "SUCCESS" : "FAILED"); |
| 19 | 19 |
| 20 // Clear watch expressions after execution. | 20 // Clear watch expressions after execution. |
| 21 watchExpressionsPane._deleteAllButtonClicked(); | 21 watchExpressionsPane._deleteAllButtonClicked(); |
| 22 InspectorTest.completeTest(); | 22 InspectorTest.completeTest(); |
| 23 } | 23 } |
| 24 } | 24 } |
| 25 | 25 |
| 26 </script> | 26 </script> |
| 27 </head> | 27 </head> |
| 28 | 28 |
| 29 <body onload="runTest()"> | 29 <body onload="runTest()"> |
| 30 <p> | 30 <p> |
| 31 Tests that watches pane renders errors in red. | 31 Tests that watches pane renders errors in red. |
| 32 </p> | 32 </p> |
| 33 | 33 |
| 34 </body> | 34 </body> |
| 35 </html> | 35 </html> |
| OLD | NEW |