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

Unified Diff: third_party/pkg/angular/test/core_dom/selector_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/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];

Powered by Google App Engine
This is Rietveld 408576698