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

Unified Diff: tests/html/htmlelement_test.dart

Issue 11238035: Make isEmpty a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. Created 8 years, 2 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 | « tests/html/htmlcollection_test.dart ('k') | tests/html/localstorage_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/htmlelement_test.dart
diff --git a/tests/html/htmlelement_test.dart b/tests/html/htmlelement_test.dart
index 36e7e75c43bb1a483246a7a982adc04e5406df9a..3dddf507d3d14892b18173d820298878000ad1fb 100644
--- a/tests/html/htmlelement_test.dart
+++ b/tests/html/htmlelement_test.dart
@@ -32,13 +32,13 @@ main() {
test('dataAttributes', () {
Element div = new Element.tag('div');
- Expect.isTrue(div.dataAttributes.isEmpty());
+ Expect.isTrue(div.dataAttributes.isEmpty);
Expect.equals(null, div.dataAttributes['foo']);
- Expect.isTrue(div.dataAttributes.isEmpty());
+ Expect.isTrue(div.dataAttributes.isEmpty);
div.dataAttributes['foo'] = 'foo-value';
Expect.equals('foo-value', div.dataAttributes['foo']);
- Expect.isFalse(div.dataAttributes.isEmpty());
+ Expect.isFalse(div.dataAttributes.isEmpty);
Expect.isTrue(div.dataAttributes.containsValue('foo-value'));
Expect.isFalse(div.dataAttributes.containsValue('bar-value'));
@@ -74,18 +74,18 @@ main() {
new List<String>.from(div.dataAttributes.getValues()));
Expect.equals(2, div.dataAttributes.length);
- Expect.isFalse(div.dataAttributes.isEmpty());
+ Expect.isFalse(div.dataAttributes.isEmpty);
Expect.isNull(div.dataAttributes.remove('qux'));
Expect.equals(2, div.dataAttributes.length);
- Expect.isFalse(div.dataAttributes.isEmpty());
+ Expect.isFalse(div.dataAttributes.isEmpty);
Expect.equals('foo-value', div.dataAttributes.remove('foo'));
Expect.equals(1, div.dataAttributes.length);
- Expect.isFalse(div.dataAttributes.isEmpty());
+ Expect.isFalse(div.dataAttributes.isEmpty);
div.dataAttributes.clear();
Expect.equals(0, div.dataAttributes.length);
- Expect.isTrue(div.dataAttributes.isEmpty());
+ Expect.isTrue(div.dataAttributes.isEmpty);
});
}
« no previous file with comments | « tests/html/htmlcollection_test.dart ('k') | tests/html/localstorage_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698