summaryrefslogtreecommitdiffstats
path: root/dom/base/test/test_mozMatchesSelector.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/test/test_mozMatchesSelector.html')
-rw-r--r--dom/base/test/test_mozMatchesSelector.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/dom/base/test/test_mozMatchesSelector.html b/dom/base/test/test_mozMatchesSelector.html
new file mode 100644
index 000000000..3f163e07a
--- /dev/null
+++ b/dom/base/test/test_mozMatchesSelector.html
@@ -0,0 +1,14 @@
+<!doctype html>
+<meta charset=utf-8>
+<title>Test for legacy mozMatchesSelector</title>
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<div id=log></div>
+<div id=test></div>
+<script>
+test(function() {
+ var element = document.getElementById("test");
+ assert_true(element.matches("#test"), "matches");
+ assert_true(element.mozMatchesSelector("#test"), "mozMatchesSelector");
+});
+</script>