This repository was archived by the owner on Mar 13, 2018. It is now read-only.
File tree 3 files changed +17
-1
lines changed
3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 306
306
}
307
307
} else {
308
308
refWrapper = null ;
309
+ refNode = null ;
309
310
}
310
311
311
312
refWrapper && assert ( refWrapper . parentNode === this ) ;
Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ suite('HTMLOptionElement', function() {
38
38
39
39
var option = new Option ( ' more text ' ) ;
40
40
assert . equal ( option . text , 'more text' ) ;
41
- assert . equal ( option . value , 'more text' ) ;
41
+ // on IE10, the value includes the surrounding spaces; trim to workaround
42
+ assert . equal ( option . value . trim ( ) , 'more text' ) ;
42
43
assert . isFalse ( option . defaultSelected ) ;
43
44
assert . isFalse ( option . selected ) ;
44
45
Original file line number Diff line number Diff line change @@ -290,4 +290,18 @@ suite('Node', function() {
290
290
assert . equal ( unwrap ( clone ) . innerHTML , '<a></a>' ) ;
291
291
} ) ;
292
292
293
+ test ( 'insertBefore' , function ( ) {
294
+ var parent = document . createElement ( 'div' ) ;
295
+ var c1 = document . createElement ( 'div' ) ;
296
+ var c2 = document . createElement ( 'div' ) ;
297
+ var c3 = document . createElement ( 'div' ) ;
298
+ parent . insertBefore ( c3 ) ;
299
+ parent . insertBefore ( c2 , c3 ) ;
300
+ parent . insertBefore ( c1 , c2 ) ;
301
+
302
+ assert . equal ( parent . firstChild , c1 ) ;
303
+ assert . equal ( c1 . nextElementSibling , c2 ) ;
304
+ assert . equal ( c2 . nextElementSibling , c3 ) ;
305
+ } ) ;
306
+
293
307
} ) ;
You can’t perform that action at this time.
0 commit comments