| 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']);
|
| });
|
| });
|
| -}
|
| +}
|
|
|