| 1 |
define( [ |
| 2 |
"qunit", |
| 3 |
"jquery", |
| 4 |
"qunit-assert-classes", |
| 5 |
"qunit-assert-close", |
| 6 |
"lib/qunit-assert-domequal" |
| 7 |
], function( QUnit, $ ) { |
| 8 |
"use strict"; |
| 9 |
|
| 10 |
var ajaxSettings = $.ajaxSettings; |
| 11 |
|
| 12 |
QUnit.config.autostart = false; |
| 13 |
QUnit.config.requireExpects = true; |
| 14 |
|
| 15 |
QUnit.config.urlConfig.push( { |
| 16 |
id: "jquery", |
| 17 |
label: "jQuery version", |
| 18 |
value: [ |
| 19 |
"1.12.4", |
| 20 |
"2.2.4", |
| 21 |
"3.0.0", |
| 22 |
"3.1.0", "3.1.1", |
| 23 |
"3.2.0", "3.2.1", |
| 24 |
"3.3.0", "3.3.1", |
| 25 |
"3.4.0", "3.4.1", |
| 26 |
"3.5.0", "3.5.1", |
| 27 |
"3.6.0", "3.6.1", "3.6.2", "3.6.3", "3.6.4", |
| 28 |
"3.7.0", "3.7.1", |
| 29 |
"4.0.0", |
| 30 |
"3.x-git", "git", "custom" |
| 31 |
], |
| 32 |
tooltip: "Which jQuery Core version to test against" |
| 33 |
} ); |
| 34 |
|
| 35 |
QUnit.config.urlConfig.push( { |
| 36 |
id: "migrate", |
| 37 |
label: "Enable jquery-migrate" |
| 38 |
} ); |
| 39 |
|
| 40 |
QUnit.testDone( function() { |
| 41 |
|
| 42 |
|
| 43 |
$( "#qunit-fixture" ).empty(); |
| 44 |
|
| 45 |
|
| 46 |
$( "#qunit-fixture-iframe" ).remove(); |
| 47 |
|
| 48 |
|
| 49 |
if ( ajaxSettings ) { |
| 50 |
$.ajaxSettings = $.extend( true, {}, ajaxSettings ); |
| 51 |
} else { |
| 52 |
delete $.ajaxSettings; |
| 53 |
} |
| 54 |
} ); |
| 55 |
|
| 56 |
return QUnit; |
| 57 |
|
| 58 |
} ); |