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

Unified Diff: tests/html/element_classes_test.dart

Issue 12851014: Add toggleAll to CSSClassSet. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months 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/dartium/html_dartium.dart ('k') | tools/dom/src/CssClassSet.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/element_classes_test.dart
diff --git a/tests/html/element_classes_test.dart b/tests/html/element_classes_test.dart
index 0af9f3e635d941db5c124d35276172998c96299e..10b41114f37e4c0e57253ceba9fe6c98fb5afeb2 100644
--- a/tests/html/element_classes_test.dart
+++ b/tests/html/element_classes_test.dart
@@ -142,6 +142,14 @@ main() {
expect(classes, orderedEquals(['foo']));
});
+ test('toggleAll', () {
+ final classes = makeClassSet();
+ classes.toggleAll(['bar', 'foo']);
+ expect(classes, orderedEquals(['baz']));
+ classes.toggleAll(['qux', 'quux']);
+ expect(classes, orderedEquals(['baz', 'qux', 'quux']));
+ });
+
test('isSubsetOf', () {
final classes = makeClassSet();
expect(classes.isSubsetOf(['foo', 'bar', 'baz'].toSet()), isTrue);
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/src/CssClassSet.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698