Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(794)

Side by Side Diff: LayoutTests/fast/dom/Element/matches.html

Issue 106983004: Implement Element.matches(selectors) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix test Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Element/matches-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body class="foo">
7 <script>
8 var element = document.body;
9 ["matches", "webkitMatchesSelector"].forEach(function(func)
10 {
11 shouldThrow("element." + func + "()");
12 shouldBeTrue("element." + func + "('body')");
13 shouldBeTrue("element." + func + "('html > .foo')");
14 shouldBeFalse("element." + func + "('html')");
15 shouldBeFalse("element." + func + "('html > .bar')");
16 shouldThrow("element." + func + "('')");
17 shouldThrow("element." + func + "('!invalid!')");
18 });
19 </script>
20 </body>
21 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Element/matches-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698