Skip to content

Commit 6149ce2

Browse files
committed
fix(render): fix failing tests in dynamic_component_loader.ts
1 parent c8bdacb commit 6149ce2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ export function main() {
118118
.then((tc) => {
119119
loader.loadNextToLocation(DynamicallyLoaded, tc.elementRef)
120120
.then(ref => {
121-
expect(tc.domElement).toHaveText("Location;");
122-
expect(DOM.nextSibling(tc.domElement))
121+
expect(tc.nativeElement).toHaveText("Location;");
122+
expect(DOM.nextSibling(tc.nativeElement))
123123
.toHaveText('DynamicallyLoaded;');
124124

125125
async.done();
@@ -142,15 +142,15 @@ export function main() {
142142
.then(ref => {
143143
loader.loadNextToLocation(DynamicallyLoaded2, tc.elementRef)
144144
.then(ref2 => {
145-
var firstSibling = DOM.nextSibling(tc.domElement);
145+
var firstSibling = DOM.nextSibling(tc.nativeElement);
146146
var secondSibling = DOM.nextSibling(firstSibling);
147-
expect(tc.domElement).toHaveText("Location;");
147+
expect(tc.nativeElement).toHaveText("Location;");
148148
expect(firstSibling).toHaveText("DynamicallyLoaded;");
149149
expect(secondSibling).toHaveText("DynamicallyLoaded2;");
150150

151151
ref2.dispose();
152152

153-
firstSibling = DOM.nextSibling(tc.domElement);
153+
firstSibling = DOM.nextSibling(tc.nativeElement);
154154
secondSibling = DOM.nextSibling(firstSibling);
155155
expect(secondSibling).toBeNull();
156156

@@ -177,7 +177,7 @@ export function main() {
177177

178178
tc.detectChanges();
179179

180-
var newlyInsertedElement = DOM.nextSibling(tc.domElement);
180+
var newlyInsertedElement = DOM.nextSibling(tc.nativeElement);
181181
expect(newlyInsertedElement.id)
182182
.toEqual("new value")
183183

0 commit comments

Comments
 (0)