| Index: third_party/pkg/angular/test/core_dom/selector_spec.dart
|
| ===================================================================
|
| --- third_party/pkg/angular/test/core_dom/selector_spec.dart (revision 33054)
|
| +++ third_party/pkg/angular/test/core_dom/selector_spec.dart (working copy)
|
| @@ -27,10 +27,7 @@
|
| @NgDirective(selector: '[my-model][my-required]')
|
| class _TwoDirectives {}
|
|
|
| -@NgDirective(selector: '[two-directives]') class _OneOfTwoDirectives {}
|
| -@NgDirective(selector: '[two-directives]') class _TwoOfTwoDirectives {}
|
|
|
| -
|
| main() {
|
| describe('Selector', () {
|
| //TODO(karma): throwing error here gets ignored
|
| @@ -58,9 +55,7 @@
|
| ..type(_Attribute)
|
| ..type(_Structural)
|
| ..type(_IgnoreChildren)
|
| - ..type(_TwoDirectives)
|
| - ..type(_OneOfTwoDirectives)
|
| - ..type(_TwoOfTwoDirectives);
|
| + ..type(_TwoDirectives);
|
| }));
|
| beforeEach(inject((DirectiveMap directives) {
|
| selector = directiveSelectorFactory(directives);
|
| @@ -187,14 +182,6 @@
|
| { "selector": '[my-model][my-required]', "value": '', "element": element}
|
| ]));
|
| });
|
| -
|
| - it('should match an two directives with the same selector', () {
|
| - expect(selector(element = e('<div two-directives></div>')),
|
| - toEqualsDirectiveInfos([
|
| - { "selector": '[two-directives]', "value": '', "element": element},
|
| - { "selector": '[two-directives]', "value": '', "element": element}
|
| - ]));
|
| - });
|
| });
|
| }
|
|
|
| @@ -212,7 +199,7 @@
|
| bool matches(directiveRefs, matchState) {
|
| var pass = expected.length == directiveRefs.length;
|
| if (pass) {
|
| - for (var i = 0, ii = expected.length; i < ii; i++) {
|
| + for(var i = 0, ii = expected.length; i < ii; i++) {
|
| DirectiveRef directiveRef = directiveRefs[i];
|
| var expectedMap = expected[i];
|
|
|
|
|