blob: ca53f254b71b6df70d26f07f013c4edc024d19ab [file] [log] [blame]
Torne (Richard Coles)5c87bf82012-11-14 11:46:17 +00001<p>This page test that using the Web Inspector's search field on a page that
2overrides <tt>Document.evaluate</tt> or <tt>Document.querySelectorAll</tt>
3still works.<p>
4
5<p>To test, right-click on this page and select &ldquo;Inspect Element&rdquo;,
6then type &ldquo;p&rdquo; in the search field (without the quotes). If the
7search results list appears, then you have passed the test. If one or more
8alert dialogs appear, you have failed the test.</p>
9
10<script>
11 function fail() { alert('FAIL') }
12 document.querySelectorAll = fail;
13 document.evaluate = fail;
14</script>