Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Unified Diff: LayoutTests/inspector/debugger/error-in-watch-expressions.html

Issue 8401034: Merge 98454 - Web Inspector: Debugger fails when there is an invalid watch expression. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector/debugger/watch-expressions-panel-switch.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
}
« no previous file with comments | « no previous file | LayoutTests/inspector/debugger/watch-expressions-panel-switch.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698