Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
df2a22ee
Commit
df2a22ee
authored
Apr 20, 2012
by
Timo Tijhof
Committed by
Rick Waldron waldron.rick@gmail.com
Apr 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enforce 20s timeout for all unit tests.
parent
8ebb2f47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
testrunner.js
test/data/testrunner.js
+20
-4
No files found.
test/data/testrunner.js
View file @
df2a22ee
jQuery
.
noConflict
();
// Allow the test to run with other libs or jQuery's.
/**
* Allow the test suite to run with other libs or jQuery's.
*/
jQuery
.
noConflict
();
// jQuery-specific QUnit.reset
/**
* QUnit hooks
*/
(
function
()
{
// jQuery-specific QUnit.reset
var
reset
=
QUnit
.
reset
,
ajaxSettings
=
jQuery
.
ajaxSettings
;
...
...
@@ -12,10 +18,20 @@ jQuery.noConflict(); // Allow the test to run with other libs or jQuery's.
};
})();
// load testswarm agent
/**
* QUnit configuration
*/
// Max time for stop() and asyncTest() until it aborts test
// and start()'s the next test.
QUnit
.
config
.
testTimeout
=
20
*
1000
;
// 20 seconds
/**
* Load the TestSwarm listener if swarmURL is in the address.
*/
(
function
()
{
var
url
=
window
.
location
.
search
;
url
=
decodeURIComponent
(
url
.
slice
(
url
.
indexOf
(
"swarmURL="
)
+
9
)
);
url
=
decodeURIComponent
(
url
.
slice
(
url
.
indexOf
(
"swarmURL="
)
+
"swarmURL="
.
length
)
);
if
(
!
url
||
url
.
indexOf
(
"http"
)
!==
0
)
{
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment