File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * QUnit v1.3.0 - A JavaScript Unit Testing Framework
2
+ * QUnit v1.4.0pre - A JavaScript Unit Testing Framework
3
3
*
4
4
* http://docs.jquery.com/QUnit
5
5
*
Original file line number Diff line number Diff line change 1
1
/**
2
- * QUnit v1.3.0 - A JavaScript Unit Testing Framework
2
+ * QUnit v1.4.0pre - A JavaScript Unit Testing Framework
3
3
*
4
4
* http://docs.jquery.com/QUnit
5
5
*
@@ -579,15 +579,15 @@ extend(QUnit, {
579
579
/**
580
580
* Resets the test setup. Useful for tests that modify the DOM.
581
581
*
582
- * If jQuery is available, uses jQuery's replaceWith (), otherwise use replaceChild
582
+ * If jQuery is available, uses jQuery's html (), otherwise just innerHTML.
583
583
*/
584
584
reset : function ( ) {
585
- var main = id ( 'qunit-fixture' ) ;
586
- if ( main ) {
587
- if ( window . jQuery ) {
588
- jQuery ( main ) . replaceWith ( config . fixture . cloneNode ( true ) ) ;
589
- } else {
590
- main . parentNode . replaceChild ( config . fixture . cloneNode ( true ) , main ) ;
585
+ if ( window . jQuery ) {
586
+ jQuery ( "#qunit-fixture" ) . html ( config . fixture ) ;
587
+ } else {
588
+ var main = id ( 'qunit- fixture' ) ;
589
+ if ( main ) {
590
+ main . innerHTML = config . fixture ;
591
591
}
592
592
}
593
593
} ,
@@ -798,7 +798,7 @@ QUnit.load = function() {
798
798
799
799
var main = id ( 'qunit-fixture' ) ;
800
800
if ( main ) {
801
- config . fixture = main . cloneNode ( true ) ;
801
+ config . fixture = main . innerHTML ;
802
802
}
803
803
804
804
if ( config . autostart ) {
You can’t perform that action at this time.
0 commit comments