summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/inspector-document-methods-override.html
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:30:52 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:30:52 -0800
commit8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (patch)
tree11425ea0b299d6fb89c6d3618a22d97d5bf68d0f /WebCore/manual-tests/inspector-document-methods-override.html
parent648161bb0edfc3d43db63caed5cc5213bc6cb78f (diff)
downloadexternal_webkit-8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2.zip
external_webkit-8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2.tar.gz
external_webkit-8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2.tar.bz2
auto import from //depot/cupcake/@135843
Diffstat (limited to 'WebCore/manual-tests/inspector-document-methods-override.html')
-rw-r--r--WebCore/manual-tests/inspector-document-methods-override.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/WebCore/manual-tests/inspector-document-methods-override.html b/WebCore/manual-tests/inspector-document-methods-override.html
new file mode 100644
index 0000000..ca53f25
--- /dev/null
+++ b/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 &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>