git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jquery core: Patch from #2619 applied, making makeArray more flexible and faster...
[jquery.git]
/
test
/
data
/
testrunner.js
diff --git
a/test/data/testrunner.js
b/test/data/testrunner.js
index
69377e4
..
6f42641
100644
(file)
--- a/
test/data/testrunner.js
+++ b/
test/data/testrunner.js
@@
-54,6
+54,11
@@
function start() {
}, 13);
}
}, 13);
}
+function dontrun(name) {
+ var filter = location.search.slice(1);
+ return filter && !new RegExp(filter).test(encodeURIComponent(name));
+}
+
function runTest() {
_config.blocking = false;
var time = new Date();
function runTest() {
_config.blocking = false;
var time = new Date();
@@
-73,8
+78,7
@@
function test(name, callback, nowait) {
if(_config.currentModule)
name = _config.currentModule + " module: " + name;
if(_config.currentModule)
name = _config.currentModule + " module: " + name;
- var filter = location.search.slice(1);
- if ( filter && encodeURIComponent(name).indexOf(filter) == -1 )
+ if (dontrun(name))
return;
synchronize(function() {
return;
synchronize(function() {
@@
-161,7
+165,7
@@
function expect(asserts) {
* Resets the test setup. Useful for tests that modify the DOM.
*/
function reset() {
* Resets the test setup. Useful for tests that modify the DOM.
*/
function reset() {
- document.getElementById('main').innerHTML = _config.fixture;
+ $("#main").html( _config.fixture );
}
/**
}
/**
@@
-273,8
+277,8
@@
function url(value) {
*
* @example equals( "Expected 2 characters.", v.formatMessage("Expected {0} characters.", 2) );
*
*
* @example equals( "Expected 2 characters.", v.formatMessage("Expected {0} characters.", 2) );
*
- * @param Object expected
* @param Object actual
* @param Object actual
+ * @param Object expected
* @param String message (optional)
*/
function equals(actual, expected, message) {
* @param String message (optional)
*/
function equals(actual, expected, message) {