Index: LayoutTests/inspector/debugger/error-in-watch-expressions.html |
=================================================================== |
--- LayoutTests/inspector/debugger/error-in-watch-expressions.html (revision 98581) |
+++ LayoutTests/inspector/debugger/error-in-watch-expressions.html (working copy) |
@@ -7,15 +7,24 @@ |
var test = function() |
{ |
+ // We need to initialize scripts panel so that watch expressions section is created. |
+ WebInspector.showPanel("scripts"); |
+ |
var watchExpressionsSection = WebInspector.panels.scripts.sidebarPanes.watchExpressions.section; |
- watchExpressionsSection.addExpression(); |
- watchExpressionsSection.watchExpressions[0] = "#$%"; |
+ watchExpressionsSection.watchExpressions = []; |
+ watchExpressionsSection.watchExpressions.push("#$%"); |
watchExpressionsSection.update(); |
+ |
InspectorTest.runAfterPendingDispatches(step1); |
function step1() |
{ |
InspectorTest.addResult(watchExpressionsSection.element.innerHTML.indexOf("watch-expressions-error-level") !== -1 ? "SUCCESS" : "FAILED"); |
+ |
+ // Clear watch expressions after execution. |
+ watchExpressionsSection.watchExpressions = []; |
+ watchExpressionsSection.update(); |
+ |
InspectorTest.completeTest(); |
} |
} |