Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / inspector-document-methods-override.html
blobca53f254b71b6df70d26f07f013c4edc024d19ab
1 <p>This page test that using the Web Inspector's search field on a page that
2 overrides <tt>Document.evaluate</tt> or <tt>Document.querySelectorAll</tt>
3 still works.<p>
5 <p>To test, right-click on this page and select &ldquo;Inspect Element&rdquo;,
6 then type &ldquo;p&rdquo; in the search field (without the quotes). If the
7 search results list appears, then you have passed the test. If one or more
8 alert dialogs appear, you have failed the test.</p>
10 <script>
11 function fail() { alert('FAIL') }
12 document.querySelectorAll = fail;
13 document.evaluate = fail;
14 </script>