diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-12 13:06:07 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-12 13:06:07 +0000 |
commit | 7653fb6261526e6fdabdbbc93a1bb709a45d62bc (patch) | |
tree | 26ceef095a450b2ab6819e6bf1b405f94c016ba7 /content | |
parent | 1ac8fde3dca94ea822bf366f0ce897dce79ed889 (diff) | |
download | chromium_src-7653fb6261526e6fdabdbbc93a1bb709a45d62bc.zip chromium_src-7653fb6261526e6fdabdbbc93a1bb709a45d62bc.tar.gz chromium_src-7653fb6261526e6fdabdbbc93a1bb709a45d62bc.tar.bz2 |
[content shell] add further methods to the testRunner's proxy object
These methods allow for using the inspector's console without constantly triggering the "not implemented" trap.
BUG=111316
R=marja@chromium.org
Review URL: https://codereview.chromium.org/11519032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172588 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r-- | content/shell/webkit_test_runner.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/content/shell/webkit_test_runner.js b/content/shell/webkit_test_runner.js index fce7e2ef..d918452 100644 --- a/content/shell/webkit_test_runner.js +++ b/content/shell/webkit_test_runner.js @@ -24,9 +24,20 @@ var testRunner = testRunner || {}; var DefaultHandler = function(name) { var handler = { get: function(receiver, property) { + if (property === "splice") + return undefined; + if (property === "__proto__") + return {} + if (property === "toString") + return function() { return "[object Object]"; }; + if (property === "constructor" || property === "valueOf") + return function() { return {}; }; NotImplemented(name, property); return function() {} }, + getOwnPropertyNames: function() { + return []; + }, getPropertyDescriptor: function(property) { NotImplemented(name, property); return undefined; |