@@ -232,23 +232,23 @@ test("block helpers whose template has a morph at the edge", function() {
232
232
equalTokens ( result . fragment , 'hello world' ) ;
233
233
var firstNode = result . root . firstNode ;
234
234
equal ( firstNode . nodeType , 3 , "first node of the parent template" ) ;
235
- equal ( firstNode . textContent , "" , "its content should be empty" ) ;
235
+ equal ( firstNode . nodeValue , "" , "its content should be empty" ) ;
236
236
237
237
var secondNode = firstNode . nextSibling ;
238
238
equal ( secondNode . nodeType , 3 , "first node of the helper template should be a text node" ) ;
239
- equal ( secondNode . textContent , "" , "its content should be empty" ) ;
239
+ equal ( secondNode . nodeValue , "" , "its content should be empty" ) ;
240
240
241
241
var textContent = secondNode . nextSibling ;
242
242
equal ( textContent . nodeType , 3 , "second node of the helper should be a text node" ) ;
243
- equal ( textContent . textContent , "hello world" , "its content should be hello world" ) ;
243
+ equal ( textContent . nodeValue , "hello world" , "its content should be hello world" ) ;
244
244
245
245
var fourthNode = textContent . nextSibling ;
246
246
equal ( fourthNode . nodeType , 3 , "last node of the helper should be a text node" ) ;
247
- equal ( fourthNode . textContent , "" , "its content should be empty" ) ;
247
+ equal ( fourthNode . nodeValue , "" , "its content should be empty" ) ;
248
248
249
249
var lastNode = fourthNode . nextSibling ;
250
250
equal ( lastNode . nodeType , 3 , "last node of the parent template should be a text node" ) ;
251
- equal ( lastNode . textContent , "" , "its content should be empty" ) ;
251
+ equal ( lastNode . nodeValue , "" , "its content should be empty" ) ;
252
252
253
253
strictEqual ( lastNode . nextSibling , null , "there should only be five nodes" ) ;
254
254
} ) ;
@@ -259,7 +259,7 @@ test("clean content doesn't get blown away", function() {
259
259
var result = template . render ( object , env ) ;
260
260
261
261
var textNode = result . fragment . firstChild . firstChild ;
262
- equal ( textNode . textContent , "hello" ) ;
262
+ equal ( textNode . nodeValue , "hello" ) ;
263
263
264
264
object . value = "goodbye" ;
265
265
result . revalidate ( ) ; // without setting the node to dirty
@@ -286,7 +286,7 @@ test("helper calls follow the normal dirtying rules", function() {
286
286
var result = template . render ( object , env ) ;
287
287
288
288
var textNode = result . fragment . firstChild . firstChild ;
289
- equal ( textNode . textContent , "HELLO" ) ;
289
+ equal ( textNode . nodeValue , "HELLO" ) ;
290
290
291
291
object . value = "goodbye" ;
292
292
result . revalidate ( ) ; // without setting the node to dirty
0 commit comments