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

Unified Diff: tests/html/element_test.dart

Issue 11665030: Fixing Element.matches to be cross-platform and follow latest spec. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding experimental annotation. Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/html/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/element_test.dart
diff --git a/tests/html/element_test.dart b/tests/html/element_test.dart
index 74e38796b71f5a865aee31cafcf505a822741c02..8500c734ebb94124a46fd3f5c7cd43edf1f5aaed 100644
--- a/tests/html/element_test.dart
+++ b/tests/html/element_test.dart
@@ -646,6 +646,17 @@ main() {
});
});
+ group('matches', () {
+ test('matches', () {
+ var element = new DivElement();
+ element.classes.add('test');
+
+ expect(element.matches('div'), true);
+ expect(element.matches('span'), false);
+ expect(element.matches('.test'), true);
+ });
+ });
+
group('queryAll', () {
List<Element> getQueryAll() {
return new Element.html("""
« no previous file with comments | « sdk/lib/html/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698