| 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 // We need to initialize scripts panel so that watch expressions section is
created. | 10 // We need to initialize sources panel so that watch expressions section is
created. |
| 11 WebInspector.showPanel("scripts"); | 11 WebInspector.showPanel("sources"); |
| 12 | 12 |
| 13 var watchExpressionsPane = WebInspector.panels.scripts.sidebarPanes.watchExp
ressions; | 13 var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watchExp
ressions; |
| 14 watchExpressionsPane.expand(); | 14 watchExpressionsPane.expand(); |
| 15 | 15 |
| 16 var watchExpressionsSection = watchExpressionsPane.section; | 16 var watchExpressionsSection = watchExpressionsPane.section; |
| 17 watchExpressionsSection.watchExpressions = []; | 17 watchExpressionsSection.watchExpressions = []; |
| 18 watchExpressionsSection.watchExpressions.push("#$%"); | 18 watchExpressionsSection.watchExpressions.push("#$%"); |
| 19 watchExpressionsSection.update(); | 19 watchExpressionsSection.update(); |
| 20 | 20 |
| 21 InspectorTest.runAfterPendingDispatches(step1); | 21 InspectorTest.runAfterPendingDispatches(step1); |
| 22 | 22 |
| 23 function step1() | 23 function step1() |
| (...skipping 11 matching lines...) Expand all Loading... |
| 35 </script> | 35 </script> |
| 36 </head> | 36 </head> |
| 37 | 37 |
| 38 <body onload="runTest()"> | 38 <body onload="runTest()"> |
| 39 <p> | 39 <p> |
| 40 Tests that watches pane renders errors in red. | 40 Tests that watches pane renders errors in red. |
| 41 </p> | 41 </p> |
| 42 | 42 |
| 43 </body> | 43 </body> |
| 44 </html> | 44 </html> |
| OLD | NEW |