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