mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
5b546538b2
This also includes a test that mozMatchesSelector is still exposed and works. --HG-- rename : js/xpconnect/tests/chrome/test_mozMatchesSelector.xul => js/xpconnect/tests/chrome/test_matches.xul rename : js/xpconnect/tests/mochitest/file_mozMatchesSelector.html => js/xpconnect/tests/mochitest/file_matches.html
15 lines
444 B
HTML
15 lines
444 B
HTML
<!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>
|