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

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

Issue 176943008: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://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
diff --git a/third_party/pkg/angular/test/core_dom/directive_spec.dart b/third_party/pkg/angular/test/core_dom/directive_spec.dart
index 284469430d863c69d8c0c34fe41c7c50fcbc32a9..26330eb000b92615789e87bb4c1ec6303b47fed0 100644
--- a/third_party/pkg/angular/test/core_dom/directive_spec.dart
+++ b/third_party/pkg/angular/test/core_dom/directive_spec.dart
@@ -16,8 +16,8 @@ main() {
it('should transform names to camel case', () {
expect(nodeAttrs['foo']).toEqual('bar');
- expect(nodeAttrs['fooBar']).toEqual('baz');
- expect(nodeAttrs['fooBarBaz']).toEqual('foo');
+ expect(nodeAttrs['foo-bar']).toEqual('baz');
+ expect(nodeAttrs['foo-bar-baz']).toEqual('foo');
});
it('should return null for unexistent attributes', () {
@@ -27,18 +27,18 @@ main() {
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', 'fooBar': 'baz', 'fooBarBaz': 'foo'});
+ expect(attrMap).toEqual({'foo': 'bar', 'foo-bar': 'baz', 'foo-bar-baz': 'foo'});
});
it('should provide a contains method', () {
expect(nodeAttrs.containsKey('foo')).toEqual(true);
- expect(nodeAttrs.containsKey('fooBar')).toEqual(true);
- expect(nodeAttrs.containsKey('fooBarBaz')).toEqual(true);
- expect(nodeAttrs.containsKey('barFoo')).toEqual(false);
+ expect(nodeAttrs.containsKey('foo-bar')).toEqual(true);
+ expect(nodeAttrs.containsKey('foo-bar-baz')).toEqual(true);
+ expect(nodeAttrs.containsKey('bar-foo')).toEqual(false);
});
it('should return the attribute names', () {
- expect(nodeAttrs.keys.toList()..sort()).toEqual(['foo', 'fooBar', 'fooBarBaz']);
+ expect(nodeAttrs.keys.toList()..sort()).toEqual(['foo', 'foo-bar', 'foo-bar-baz']);
});
});
-}
+}

Powered by Google App Engine
This is Rietveld 408576698