@@ -12,7 +12,7 @@ import {
1212 xit ,
1313} from '@angular/testing/testing_internal' ;
1414
15- import { DOM } from '@angular/platform-browser/src/dom/dom_adapter' ;
15+ import { getDOM } from '@angular/platform-browser/src/dom/dom_adapter' ;
1616
1717import { Component } from '@angular/core' ;
1818import { NgIf } from '@angular/common' ;
@@ -29,7 +29,7 @@ export function main() {
2929 . createAsync ( TestComponent )
3030 . then ( ( fixture ) => {
3131 fixture . detectChanges ( ) ;
32- expect ( DOM . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
32+ expect ( getDOM ( ) . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
3333 . toEqual ( 1 ) ;
3434 expect ( fixture . debugElement . nativeElement ) . toHaveText ( 'hello' ) ;
3535 async . done ( ) ;
@@ -45,7 +45,7 @@ export function main() {
4545 . createAsync ( TestComponent )
4646 . then ( ( fixture ) => {
4747 fixture . detectChanges ( ) ;
48- expect ( DOM . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
48+ expect ( getDOM ( ) . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
4949 . toEqual ( 1 ) ;
5050 expect ( fixture . debugElement . nativeElement ) . toHaveText ( 'hello2' ) ;
5151 async . done ( ) ;
@@ -61,19 +61,19 @@ export function main() {
6161 . then ( ( fixture ) => {
6262 fixture . debugElement . componentInstance . booleanCondition = false ;
6363 fixture . detectChanges ( ) ;
64- expect ( DOM . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
64+ expect ( getDOM ( ) . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
6565 . toEqual ( 0 ) ;
6666 expect ( fixture . debugElement . nativeElement ) . toHaveText ( '' ) ;
6767
6868 fixture . debugElement . componentInstance . booleanCondition = true ;
6969 fixture . detectChanges ( ) ;
70- expect ( DOM . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
70+ expect ( getDOM ( ) . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
7171 . toEqual ( 1 ) ;
7272 expect ( fixture . debugElement . nativeElement ) . toHaveText ( 'hello' ) ;
7373
7474 fixture . debugElement . componentInstance . booleanCondition = false ;
7575 fixture . detectChanges ( ) ;
76- expect ( DOM . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
76+ expect ( getDOM ( ) . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
7777 . toEqual ( 0 ) ;
7878 expect ( fixture . debugElement . nativeElement ) . toHaveText ( '' ) ;
7979
@@ -91,31 +91,31 @@ export function main() {
9191 . then ( ( fixture ) => {
9292 fixture . debugElement . componentInstance . booleanCondition = false ;
9393 fixture . detectChanges ( ) ;
94- expect ( DOM . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
94+ expect ( getDOM ( ) . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
9595 . toEqual ( 0 ) ;
9696 expect ( fixture . debugElement . nativeElement ) . toHaveText ( '' ) ;
9797
9898 fixture . debugElement . componentInstance . booleanCondition = true ;
9999 fixture . detectChanges ( ) ;
100- expect ( DOM . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
100+ expect ( getDOM ( ) . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
101101 . toEqual ( 1 ) ;
102102 expect ( fixture . debugElement . nativeElement ) . toHaveText ( 'hello' ) ;
103103
104104 fixture . debugElement . componentInstance . nestedBooleanCondition = false ;
105105 fixture . detectChanges ( ) ;
106- expect ( DOM . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
106+ expect ( getDOM ( ) . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
107107 . toEqual ( 0 ) ;
108108 expect ( fixture . debugElement . nativeElement ) . toHaveText ( '' ) ;
109109
110110 fixture . debugElement . componentInstance . nestedBooleanCondition = true ;
111111 fixture . detectChanges ( ) ;
112- expect ( DOM . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
112+ expect ( getDOM ( ) . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
113113 . toEqual ( 1 ) ;
114114 expect ( fixture . debugElement . nativeElement ) . toHaveText ( 'hello' ) ;
115115
116116 fixture . debugElement . componentInstance . booleanCondition = false ;
117117 fixture . detectChanges ( ) ;
118- expect ( DOM . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
118+ expect ( getDOM ( ) . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
119119 . toEqual ( 0 ) ;
120120 expect ( fixture . debugElement . nativeElement ) . toHaveText ( '' ) ;
121121
@@ -136,21 +136,21 @@ export function main() {
136136 . createAsync ( TestComponent )
137137 . then ( ( fixture ) => {
138138 fixture . detectChanges ( ) ;
139- expect ( DOM . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
139+ expect ( getDOM ( ) . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
140140 . toEqual ( 3 ) ;
141- expect ( DOM . getText ( fixture . debugElement . nativeElement ) )
141+ expect ( getDOM ( ) . getText ( fixture . debugElement . nativeElement ) )
142142 . toEqual ( 'helloNumberhelloStringhelloFunction' ) ;
143143
144144 fixture . debugElement . componentInstance . numberCondition = 0 ;
145145 fixture . detectChanges ( ) ;
146- expect ( DOM . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
146+ expect ( getDOM ( ) . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
147147 . toEqual ( 1 ) ;
148148 expect ( fixture . debugElement . nativeElement ) . toHaveText ( 'helloString' ) ;
149149
150150 fixture . debugElement . componentInstance . numberCondition = 1 ;
151151 fixture . debugElement . componentInstance . stringCondition = "bar" ;
152152 fixture . detectChanges ( ) ;
153- expect ( DOM . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
153+ expect ( getDOM ( ) . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
154154 . toEqual ( 1 ) ;
155155 expect ( fixture . debugElement . nativeElement ) . toHaveText ( 'helloNumber' ) ;
156156 async . done ( ) ;
@@ -167,13 +167,13 @@ export function main() {
167167 . createAsync ( TestComponent )
168168 . then ( ( fixture ) => {
169169 fixture . detectChanges ( ) ;
170- expect ( DOM . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
170+ expect ( getDOM ( ) . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
171171 . toEqual ( 1 ) ;
172172 expect ( fixture . debugElement . nativeElement ) . toHaveText ( 'hello' ) ;
173173
174174 fixture . debugElement . componentInstance . numberCondition = 2 ;
175175 fixture . detectChanges ( ) ;
176- expect ( DOM . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
176+ expect ( getDOM ( ) . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
177177 . toEqual ( 1 ) ;
178178 expect ( fixture . debugElement . nativeElement ) . toHaveText ( 'hello' ) ;
179179
@@ -189,13 +189,13 @@ export function main() {
189189 . createAsync ( TestComponent )
190190 . then ( ( fixture ) => {
191191 fixture . detectChanges ( ) ;
192- DOM . addClass ( DOM . querySelector ( fixture . debugElement . nativeElement , 'copy-me' ) ,
192+ getDOM ( ) . addClass ( getDOM ( ) . querySelector ( fixture . debugElement . nativeElement , 'copy-me' ) ,
193193 "foo" ) ;
194194
195195 fixture . debugElement . componentInstance . numberCondition = 2 ;
196196 fixture . detectChanges ( ) ;
197197 expect (
198- DOM . hasClass ( DOM . querySelector ( fixture . debugElement . nativeElement , 'copy-me' ) ,
198+ getDOM ( ) . hasClass ( getDOM ( ) . querySelector ( fixture . debugElement . nativeElement , 'copy-me' ) ,
199199 "foo" ) )
200200 . toBe ( true ) ;
201201
@@ -213,7 +213,7 @@ export function main() {
213213 . createAsync ( TestComponent )
214214 . then ( ( fixture ) => {
215215 expect ( ( ) => fixture . detectChanges ( ) ) . toThrowError ( ) ;
216- expect ( DOM . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
216+ expect ( getDOM ( ) . querySelectorAll ( fixture . debugElement . nativeElement , 'copy-me' ) . length )
217217 . toEqual ( 0 ) ;
218218 expect ( fixture . debugElement . nativeElement ) . toHaveText ( '' ) ;
219219 async . done ( ) ;
0 commit comments