diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-12 10:49:52 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-12 10:49:52 +0000 |
commit | 41efb29da417d17e764d279fa3b5c27cab045691 (patch) | |
tree | 532fa1c988ff983e815d044fb79ffb7ebb09f7ac /content/shell | |
parent | 5b9c2dd7f095b25c26bbbe5aa1e13847e10a78ac (diff) | |
download | chromium_src-41efb29da417d17e764d279fa3b5c27cab045691.zip chromium_src-41efb29da417d17e764d279fa3b5c27cab045691.tar.gz chromium_src-41efb29da417d17e764d279fa3b5c27cab045691.tar.bz2 |
[content shell] add a getPropertyDescriptor trap to the test runner
This will catch patterns like if ('foo' in window.testRunner)
BUG=111316
TEST=animations/longhand-timing-function.html doesn't time out
Review URL: https://codereview.chromium.org/11110011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161554 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell')
-rw-r--r-- | content/shell/webkit_test_runner.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/content/shell/webkit_test_runner.js b/content/shell/webkit_test_runner.js index 4b9f386..8865ec9 100644 --- a/content/shell/webkit_test_runner.js +++ b/content/shell/webkit_test_runner.js @@ -25,6 +25,10 @@ var textInputController = textInputController || {}; get: function(receiver, property) { NotImplemented(name, property); return function() {} + }, + getPropertyDescriptor: function(property) { + NotImplemented(name, property); + return undefined; } } return Proxy.create(handler); |