@@ -69,8 +69,8 @@ void main() {
69
69
backend.flush ();
70
70
microLeap ();
71
71
72
- expect (renderedText ( element)).toEqual ('.hello{}Simple!' );
73
- expect (element[ 0 ].nodes[ 0 ] .shadowRoot.innerHtml ).toEqual (
72
+ expect (element. textWithShadow ( )).toEqual ('.hello{}Simple!' );
73
+ expect (element. children () .shadowRoot (). html () ).toEqual (
74
74
'<style>.hello{}</style><div log="SIMPLE">Simple!</div>'
75
75
);
76
76
})));
@@ -98,7 +98,7 @@ void main() {
98
98
backend.flush ();
99
99
microLeap ();
100
100
101
- expect (renderedText ( element)).toEqual ('Simple!' );
101
+ expect (element. textWithShadow ( )).toEqual ('Simple!' );
102
102
$rootScope.apply ();
103
103
// Note: There is no ordering. It is who ever comes off the wire first!
104
104
expect (log.result ()).toEqual ('LOG; SIMPLE' );
@@ -119,7 +119,7 @@ void main() {
119
119
backend.flush ();
120
120
microLeap ();
121
121
122
- expect (renderedText ( element)).toEqual ('Simple!Simple!' );
122
+ expect (element. textWithShadow ( )).toEqual ('Simple!Simple!' );
123
123
$rootScope.apply ();
124
124
// Note: There is no ordering. It is who ever comes off the wire first!
125
125
expect (log.result ()).toEqual ('LOG; LOG; SIMPLE; SIMPLE' );
@@ -138,8 +138,8 @@ void main() {
138
138
backend.flush ();
139
139
microLeap ();
140
140
141
- expect (renderedText ( element)).toEqual ('.hello{}Simple!' );
142
- expect (element[ 0 ].nodes[ 0 ] .shadowRoot.innerHtml ).toEqual (
141
+ expect (element. textWithShadow ( )).toEqual ('.hello{}Simple!' );
142
+ expect (element. children () .shadowRoot (). html () ).toEqual (
143
143
'<style>.hello{}</style><div log="SIMPLE">Simple!</div>'
144
144
);
145
145
$rootScope.apply ();
@@ -156,7 +156,7 @@ void main() {
156
156
157
157
backend.flush ();
158
158
microLeap ();
159
- expect (renderedText ( element)).toEqual ('.hello{}inline!' );
159
+ expect (element. textWithShadow ( )).toEqual ('.hello{}inline!' );
160
160
})));
161
161
162
162
it ('should ignore CSS load errors ' , async (inject (
@@ -168,7 +168,7 @@ void main() {
168
168
169
169
backend.flush ();
170
170
microLeap ();
171
- expect (renderedText ( element)).toEqual (
171
+ expect (element. textWithShadow ( )).toEqual (
172
172
'/*\n '
173
173
'HTTP 500: some error\n '
174
174
'*/\n '
@@ -184,7 +184,7 @@ void main() {
184
184
185
185
backend.flush ();
186
186
microLeap ();
187
- expect (renderedText ( element)).toEqual ('.hello{}' );
187
+ expect (element. textWithShadow ( )).toEqual ('.hello{}' );
188
188
})));
189
189
190
190
it ('should load the CSS before the template is loaded' , async (inject (
@@ -199,7 +199,7 @@ void main() {
199
199
200
200
backend.flush ();
201
201
microLeap ();
202
- expect (renderedText ( element)).toEqual ('.hello{}Simple!' );
202
+ expect (element. textWithShadow ( )).toEqual ('.hello{}Simple!' );
203
203
})));
204
204
});
205
205
@@ -224,8 +224,8 @@ void main() {
224
224
backend.flush ();
225
225
microLeap ();
226
226
227
- expect (renderedText ( element)).toEqual ('.hello{}.world{}Simple!' );
228
- expect (element[ 0 ].nodes[ 0 ] .shadowRoot.innerHtml ).toEqual (
227
+ expect (element. textWithShadow ( )).toEqual ('.hello{}.world{}Simple!' );
228
+ expect (element. children () .shadowRoot (). html () ).toEqual (
229
229
'<style>.hello{}.world{}</style><div log="SIMPLE">Simple!</div>'
230
230
);
231
231
$rootScope.apply ();
0 commit comments