diff options
Diffstat (limited to 'Source/WebCore/manual-tests/inspector-document-methods-override.html')
-rw-r--r-- | Source/WebCore/manual-tests/inspector-document-methods-override.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/WebCore/manual-tests/inspector-document-methods-override.html b/Source/WebCore/manual-tests/inspector-document-methods-override.html new file mode 100644 index 0000000..ca53f25 --- /dev/null +++ b/Source/WebCore/manual-tests/inspector-document-methods-override.html @@ -0,0 +1,14 @@ +<p>This page test that using the Web Inspector's search field on a page that +overrides <tt>Document.evaluate</tt> or <tt>Document.querySelectorAll</tt> +still works.<p> + +<p>To test, right-click on this page and select “Inspect Element”, +then type “p” in the search field (without the quotes). If the +search results list appears, then you have passed the test. If one or more +alert dialogs appear, you have failed the test.</p> + +<script> + function fail() { alert('FAIL') } + document.querySelectorAll = fail; + document.evaluate = fail; +</script> |