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

Unified Diff: tests/html/documentfragment_test.dart

Issue 10868026: Adding .toggle method to Element.classes to match the JS element.classList.toggle method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding CSSClassSet to wrappers and converting it to a frozen API on DocumentFragment. Created 8 years, 4 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
Index: tests/html/documentfragment_test.dart
diff --git a/tests/html/documentfragment_test.dart b/tests/html/documentfragment_test.dart
index f400804460c9ff3e070aa469d0e0620617bdcf73..1699897ee6a8bf193bc9d5989e4b8ef19f8ab10a 100644
--- a/tests/html/documentfragment_test.dart
+++ b/tests/html/documentfragment_test.dart
@@ -81,6 +81,7 @@ main() {
var emptyFragment = new DocumentFragment();
expectUnsupported(() => emptyFragment.attributes = {});
expectUnsupported(() => emptyFragment.classes = []);
+ expectUnsupported(() => emptyFragment.classes.add('foo'));
expectUnsupported(() => emptyFragment.dataAttributes = {});
expectUnsupported(() => emptyFragment.contentEditable = "true");
expectUnsupported(() => emptyFragment.dir);

Powered by Google App Engine
This is Rietveld 408576698