git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2084e01
)
Moving jQuery-core specific resets from QUnit to core.
author
jzaefferer
<joern.zaefferer@gmail.com>
Tue, 27 Jul 2010 10:50:08 +0000
(12:50 +0200)
committer
jzaefferer
<joern.zaefferer@gmail.com>
Tue, 27 Jul 2010 10:50:08 +0000
(12:50 +0200)
test/data/testrunner.js
patch
|
blob
|
history
diff --git
a/test/data/testrunner.js
b/test/data/testrunner.js
index
dc39bc5
..
beb0fe2
100644
(file)
--- a/
test/data/testrunner.js
+++ b/
test/data/testrunner.js
@@
-1,5
+1,16
@@
jQuery.noConflict(); // Allow the test to run with other libs or jQuery's.
+// jQuery-specific QUnit.reset
+(function() {
+ var reset = QUnit.reset;
+ var ajaxSettings = jQuery.ajaxSettings
+ QUnit.reset = function() {
+ reset.apply(this, arguments);
+ jQuery.event.global = {};
+ jQuery.ajaxSettings = jQuery.extend({}, ajaxSettings);
+ };
+})();
+
// load testswarm agent
(function() {
var url = window.location.search;