summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/inspector-document-methods-override.html
blob: ca53f254b71b6df70d26f07f013c4edc024d19ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 &ldquo;Inspect Element&rdquo;,
then type &ldquo;p&rdquo; 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>