Index: LayoutTests/inspector/sources/debugger/error-in-watch-expressions.html |
diff --git a/LayoutTests/inspector/sources/debugger/error-in-watch-expressions.html b/LayoutTests/inspector/sources/debugger/error-in-watch-expressions.html |
index 742619ddbabeaa829f360cee6cb3ed112af66d4b..7cceabee259ba51149934d1d58f09ec4472650ca 100644 |
--- a/LayoutTests/inspector/sources/debugger/error-in-watch-expressions.html |
+++ b/LayoutTests/inspector/sources/debugger/error-in-watch-expressions.html |
@@ -9,22 +9,16 @@ var test = function() |
{ |
var watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watchExpressions; |
watchExpressionsPane.expand(); |
- |
- var watchExpressionsSection = watchExpressionsPane.section; |
- watchExpressionsSection.watchExpressions = []; |
- watchExpressionsSection.watchExpressions.push("#$%"); |
- watchExpressionsSection.update(); |
+ watchExpressionsPane.addExpression("#$%"); |
InspectorTest.runAfterPendingDispatches(step1); |
function step1() |
{ |
- InspectorTest.addResult(watchExpressionsSection.element.textContent.indexOf("<not available>") !== -1 ? "SUCCESS" : "FAILED"); |
+ InspectorTest.addResult(watchExpressionsPane.bodyElement.textContent.indexOf("<not available>") !== -1 ? "SUCCESS" : "FAILED"); |
// Clear watch expressions after execution. |
- watchExpressionsSection.watchExpressions = []; |
- watchExpressionsSection.update(); |
- |
+ watchExpressionsPane._deleteAllButtonClicked(); |
InspectorTest.completeTest(); |
} |
} |