Skip to content
Permalink
Browse files

updated to latest QUnit

  • Loading branch information
jzaefferer committed Sep 15, 2009
1 parent 0508fd0 commit 06702d8b3007ca37db4578078901172c64ea97be
@@ -7,7 +7,7 @@
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* $Id: testrunner.js 6416 2009-07-10 16:08:27Z joern.zaefferer $
* $Id: testrunner.js 6574 2009-09-15 20:30:29Z joern.zaefferer $
*/

(function($) {
@@ -206,13 +206,8 @@ var equiv = function () {

}();

var GETParams = $.map( location.search.slice(1).split('&'), decodeURIComponent ),
ngindex = $.inArray("noglobals", GETParams),
noglobals = ngindex !== -1;
var GETParams = $.map( location.search.slice(1).split('&'), decodeURIComponent );

if( noglobals )
GETParams.splice( ngindex, 1 );

var config = {
stats: {
all: 0,
@@ -359,9 +354,8 @@ var pollution;
function saveGlobal(){
pollution = [ ];

if( noglobals )
for( var key in window )
pollution.push(key);
for( var key in window )
pollution.push(key);
}
function checkPollution( name ){
var old = pollution;
@@ -415,8 +409,8 @@ function test(name, callback) {
});
synchronize(function() {
try {
checkPollution();
lifecycle.teardown.call(testEnvironment);
checkPollution();
} catch(e) {
QUnit.ok( false, "Teardown failed on " + name + ": " + e.message );
}
@@ -8,7 +8,7 @@
<script type="text/javascript" src="../../../ui/ui.accordion.js"></script>

<link type="text/css" href="../testsuite.css" rel="stylesheet" />
<script type="text/javascript" src="../../../external/testrunner-r6416.js"></script>
<script type="text/javascript" src="../../../external/testrunner-r6574.js"></script>
<script type="text/javascript" src="../../jquery.simulate.js"></script>
<script type="text/javascript" src="../testsuite.js"></script>

@@ -130,9 +130,10 @@ test("activate, string expression", function() {
ac.accordion("activate", ":eq(1)");
state(ac, 0, 1, 0);
ac.accordion("activate", ":last");
state(ac, 0, 0, 1);
state(ac, 0, 1, 1);
});

//[ 0, 1, 1 ] result: [ 0, 0, 1 ]
//[ 0, 1, 1] result: [ 0, 0, 1]
test("activate, jQuery or DOM element", function() {
var ac = $('#list1').accordion({ active: $("#list1 a:last") });
state(ac, 0, 0, 1);
@@ -18,7 +18,7 @@
<script type="text/javascript" src="../../ui/ui.sortable.js"></script>
<script type="text/javascript" src="../../ui/ui.tabs.js"></script>

<script type="text/javascript" src="../../external/testrunner-r6416.js"></script>
<script type="text/javascript" src="../../external/testrunner-r6574.js"></script>
<script type="text/javascript" src="../../external/jquery.cookie-r6165.js"></script>
<script type="text/javascript" src="../jquery.simulate.js"></script>
<script type="text/javascript" src="testsuite.js"></script>
@@ -51,7 +51,7 @@
<script type="text/javascript" src="../../ui/ui.sortable.js"></script>
<script type="text/javascript" src="../../ui/ui.tabs.js"></script>

<script type="text/javascript" src="../../external/testrunner-r6416.js"></script>
<script type="text/javascript" src="../../external/testrunner-r6574.js"></script>
<script type="text/javascript" src="../../external/jquery.cookie-r6165.js"></script>
<script type="text/javascript" src="../jquery.simulate.js"></script>

@@ -7,7 +7,7 @@
<script type="text/javascript" src="../../../ui/ui.core.js"></script>

<link type="text/css" href="../testsuite.css" rel="stylesheet" />
<script type="text/javascript" src="../../../external/testrunner-r6416.js"></script>
<script type="text/javascript" src="../../../external/testrunner-r6574.js"></script>
<script type="text/javascript" src="../../jquery.simulate.js"></script>
<script type="text/javascript" src="../testsuite.js"></script>

@@ -12,7 +12,7 @@
<script type="text/javascript" src="../../../ui/i18n/ui.datepicker-he.js"></script>

<link type="text/css" href="../testsuite.css" rel="stylesheet" />
<script type="text/javascript" src="../../../external/testrunner-r6416.js"></script>
<script type="text/javascript" src="../../../external/testrunner-r6574.js"></script>
<script type="text/javascript" src="../../jquery.simulate.js"></script>
<script type="text/javascript" src="../testsuite.js"></script>

@@ -19,7 +19,7 @@

<link type="text/css" href="testsuite.css" rel="stylesheet" />
<script type="text/javascript" src="testsuite.js"></script>
<script type="text/javascript" src="../../external/testrunner-r6416.js"></script>
<script type="text/javascript" src="../../external/testrunner-r6574.js"></script>
<script type="text/javascript" src="../../external/jquery.cookie-r6165.js"></script>
<script type="text/javascript" src="../jquery.simulate.js"></script>

@@ -12,7 +12,7 @@
<script type="text/javascript" src="../../../ui/ui.dialog.js"></script>

<link type="text/css" href="../testsuite.css" rel="stylesheet" />
<script type="text/javascript" src="../../../external/testrunner-r6416.js"></script>
<script type="text/javascript" src="../../../external/testrunner-r6574.js"></script>
<script type="text/javascript" src="../../jquery.simulate.js"></script>
<script type="text/javascript" src="../testsuite.js"></script>

@@ -8,7 +8,7 @@
<script type="text/javascript" src="../../../ui/ui.draggable.js"></script>

<link type="text/css" href="../testsuite.css" rel="stylesheet" />
<script type="text/javascript" src="../../../external/testrunner-r6416.js"></script>
<script type="text/javascript" src="../../../external/testrunner-r6574.js"></script>
<script type="text/javascript" src="../../jquery.simulate.js"></script>
<script type="text/javascript" src="../testsuite.js"></script>

@@ -9,7 +9,7 @@
<script type="text/javascript" src="../../../ui/ui.droppable.js"></script>

<link type="text/css" href="../testsuite.css" rel="stylesheet" />
<script type="text/javascript" src="../../../external/testrunner-r6416.js"></script>
<script type="text/javascript" src="../../../external/testrunner-r6574.js"></script>
<script type="text/javascript" src="../../jquery.simulate.js"></script>
<script type="text/javascript" src="../testsuite.js"></script>

@@ -8,7 +8,7 @@
<script type="text/javascript" src="../../../ui/ui.position.js"></script>

<link type="text/css" href="../testsuite.css" rel="stylesheet" />
<script type="text/javascript" src="../../../external/testrunner-r6416.js"></script>
<script type="text/javascript" src="../../../external/testrunner-r6574.js"></script>
<script type="text/javascript" src="../testsuite.js"></script>

<script type="text/javascript" src="position_core.js"></script>
@@ -8,7 +8,7 @@
<script type="text/javascript" src="../../../ui/ui.progressbar.js"></script>

<link type="text/css" href="../testsuite.css" rel="stylesheet" />
<script type="text/javascript" src="../../../external/testrunner-r6416.js"></script>
<script type="text/javascript" src="../../../external/testrunner-r6574.js"></script>
<script type="text/javascript" src="../../jquery.simulate.js"></script>
<script type="text/javascript" src="../testsuite.js"></script>

@@ -8,7 +8,7 @@
<script type="text/javascript" src="../../../ui/ui.resizable.js"></script>

<link type="text/css" href="../testsuite.css" rel="stylesheet" />
<script type="text/javascript" src="../../../external/testrunner-r6416.js"></script>
<script type="text/javascript" src="../../../external/testrunner-r6574.js"></script>
<script type="text/javascript" src="../../jquery.simulate.js"></script>
<script type="text/javascript" src="../testsuite.js"></script>

@@ -8,7 +8,7 @@
<script type="text/javascript" src="../../../ui/ui.selectable.js"></script>

<link type="text/css" href="../testsuite.css" rel="stylesheet" />
<script type="text/javascript" src="../../../external/testrunner-r6416.js"></script>
<script type="text/javascript" src="../../../external/testrunner-r6574.js"></script>
<script type="text/javascript" src="../../jquery.simulate.js"></script>
<script type="text/javascript" src="../testsuite.js"></script>

@@ -8,7 +8,7 @@
<script type="text/javascript" src="../../../ui/ui.slider.js"></script>

<link type="text/css" href="../testsuite.css" rel="stylesheet" />
<script type="text/javascript" src="../../../external/testrunner-r6416.js"></script>
<script type="text/javascript" src="../../../external/testrunner-r6574.js"></script>
<script type="text/javascript" src="../../jquery.simulate.js"></script>
<script type="text/javascript" src="../testsuite.js"></script>

@@ -8,7 +8,7 @@
<script type="text/javascript" src="../../../ui/ui.sortable.js"></script>

<link type="text/css" href="../testsuite.css" rel="stylesheet" />
<script type="text/javascript" src="../../../external/testrunner-r6416.js"></script>
<script type="text/javascript" src="../../../external/testrunner-r6574.js"></script>
<script type="text/javascript" src="../../jquery.simulate.js"></script>
<script type="text/javascript" src="../testsuite.js"></script>

@@ -8,7 +8,7 @@
<script type="text/javascript" src="../../../ui/ui.tabs.js"></script>

<link type="text/css" href="../testsuite.css" rel="stylesheet" />
<script type="text/javascript" src="../../../external/testrunner-r6416.js"></script>
<script type="text/javascript" src="../../../external/testrunner-r6574.js"></script>
<script type="text/javascript" src="../../../external/jquery.cookie-r6165.js"></script>
<script type="text/javascript" src="../../jquery.simulate.js"></script>
<script type="text/javascript" src="../testsuite.js"></script>

0 comments on commit 06702d8

Please sign in to comment.
You can’t perform that action at this time.