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

Unified Diff: third_party/pkg/angular/test/core_dom/directive_spec.dart

Issue 180843004: Revert revision 33053 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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: third_party/pkg/angular/test/core_dom/directive_spec.dart
===================================================================
--- third_party/pkg/angular/test/core_dom/directive_spec.dart (revision 33054)
+++ third_party/pkg/angular/test/core_dom/directive_spec.dart (working copy)
@@ -16,8 +16,8 @@
it('should transform names to camel case', () {
expect(nodeAttrs['foo']).toEqual('bar');
- expect(nodeAttrs['foo-bar']).toEqual('baz');
- expect(nodeAttrs['foo-bar-baz']).toEqual('foo');
+ expect(nodeAttrs['fooBar']).toEqual('baz');
+ expect(nodeAttrs['fooBarBaz']).toEqual('foo');
});
it('should return null for unexistent attributes', () {
@@ -27,18 +27,18 @@
it('should provide a forEach function to iterate over attributes', () {
Map<String, String> attrMap = new Map();
nodeAttrs.forEach((k, v) => attrMap[k] = v);
- expect(attrMap).toEqual({'foo': 'bar', 'foo-bar': 'baz', 'foo-bar-baz': 'foo'});
+ expect(attrMap).toEqual({'foo': 'bar', 'fooBar': 'baz', 'fooBarBaz': 'foo'});
});
it('should provide a contains method', () {
expect(nodeAttrs.containsKey('foo')).toEqual(true);
- expect(nodeAttrs.containsKey('foo-bar')).toEqual(true);
- expect(nodeAttrs.containsKey('foo-bar-baz')).toEqual(true);
- expect(nodeAttrs.containsKey('bar-foo')).toEqual(false);
+ expect(nodeAttrs.containsKey('fooBar')).toEqual(true);
+ expect(nodeAttrs.containsKey('fooBarBaz')).toEqual(true);
+ expect(nodeAttrs.containsKey('barFoo')).toEqual(false);
});
it('should return the attribute names', () {
- expect(nodeAttrs.keys.toList()..sort()).toEqual(['foo', 'foo-bar', 'foo-bar-baz']);
+ expect(nodeAttrs.keys.toList()..sort()).toEqual(['foo', 'fooBar', 'fooBarBaz']);
});
});
-}
+}
« no previous file with comments | « third_party/pkg/angular/test/core_dom/cookies_spec.dart ('k') | third_party/pkg/angular/test/core_dom/http_spec.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698