WebCore/manual-tests/inspector-document-methods-override.html
changeset 0 4f2f89ce4247
equal deleted inserted replaced
-1:000000000000 0:4f2f89ce4247
       
     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>
       
     4 
       
     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>
       
     9 
       
    10 <script>
       
    11     function fail() { alert('FAIL') }
       
    12     document.querySelectorAll = fail;
       
    13     document.evaluate = fail;
       
    14 </script>