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

Unified Diff: LayoutTests/inspector/console/console-substituted.html

Issue 189723004: DevTools: console evaluation should work when window.console is overriden. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
Index: LayoutTests/inspector/console/console-substituted.html
diff --git a/LayoutTests/inspector/console/console-substituted.html b/LayoutTests/inspector/console/console-substituted.html
index 1f092c9e72a1ce7712e1cf6efa48414afea30df3..e214d1b3a3f672900c6d892c21fb34ba643e4fa3 100644
--- a/LayoutTests/inspector/console/console-substituted.html
+++ b/LayoutTests/inspector/console/console-substituted.html
@@ -10,10 +10,7 @@ function deleteConsole()
function substituteConsole()
{
- window.console = {
- get _commandLineAPI() { return undefined; },
- set _commandLineAPI() {}
- };
+ Object.defineProperty(window, "__commandLineAPI", { enumerable: false, configurable: false, get: function() { throw "Substituted" }});
}
var test = function()
« no previous file with comments | « LayoutTests/inspector/console/console-native-function-to-string.html ('k') | Source/core/inspector/InjectedScriptSource.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698