Skip to content

Commit 0a40024

Browse files
test(integration): minor tests cleanup
Closes angular#3329
1 parent 985627b commit 0a40024

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

modules/angular2/test/core/compiler/integration_spec.ts

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ import {ElementRef} from 'angular2/src/core/compiler/element_ref';
7373
import {TemplateRef} from 'angular2/src/core/compiler/template_ref';
7474

7575
import {DomRenderer} from 'angular2/src/render/dom/dom_renderer';
76-
import {AppViewManager} from 'angular2/src/core/compiler/view_manager';
7776

7877
const ANCHOR_ELEMENT = CONST_EXPR(new OpaqueToken('AnchorElement'));
7978

@@ -1479,7 +1478,7 @@ class MyService {
14791478
class SimpleImperativeViewComponent {
14801479
done;
14811480

1482-
constructor(self: ElementRef, viewManager: AppViewManager, renderer: DomRenderer) {
1481+
constructor(self: ElementRef, renderer: DomRenderer) {
14831482
var hostElement = renderer.getNativeElementSync(self);
14841483
DOM.appendChild(hostElement, el('hello imp view'));
14851484
}
@@ -1722,7 +1721,6 @@ var globalCounter = 0;
17221721
@Injectable()
17231722
class DirectiveListeningDomEventOther {
17241723
eventType: string;
1725-
counter: int;
17261724
constructor() { this.eventType = ''; }
17271725
onEvent(eventType: string) {
17281726
globalCounter++;
@@ -1856,15 +1854,6 @@ class DirectiveProvidingInjectable {
18561854
class DirectiveProvidingInjectableInView {
18571855
}
18581856

1859-
@Component({
1860-
selector: 'directive-providing-injectable',
1861-
hostInjector: [new Binding(InjectableService, {toValue: 'host'})],
1862-
viewInjector: [new Binding(InjectableService, {toValue: 'view'})]
1863-
})
1864-
@View({template: ''})
1865-
@Injectable()
1866-
class DirectiveProvidingInjectableInHostAndView {
1867-
}
18681857

18691858

18701859
@Component({selector: 'directive-consuming-injectable'})
@@ -1989,22 +1978,19 @@ class ComponentWithoutView {
19891978

19901979
@Directive({selector: '[no-duplicate]'})
19911980
class DuplicateDir {
1992-
constructor(renderer: DomRenderer, private elRef: ElementRef) {
1981+
constructor(elRef: ElementRef) {
19931982
DOM.setText(elRef.nativeElement, DOM.getText(elRef.nativeElement) + 'noduplicate');
19941983
}
19951984
}
19961985

19971986
@Directive({selector: '[no-duplicate]'})
19981987
class OtherDuplicateDir {
1999-
constructor(renderer: DomRenderer, private elRef: ElementRef) {
1988+
constructor(elRef: ElementRef) {
20001989
DOM.setText(elRef.nativeElement, DOM.getText(elRef.nativeElement) + 'othernoduplicate');
20011990
}
20021991
}
20031992

20041993
@Directive({selector: 'directive-throwing-error'})
20051994
class DirectiveThrowingAnError {
2006-
constructor() {
2007-
throw new BaseException("BOOM");
2008-
;
2009-
}
1995+
constructor() { throw new BaseException("BOOM"); }
20101996
}

0 commit comments

Comments
 (0)