git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rework unit tests to check actual result elements.
[jquery.git]
/
test
/
data
/
testinit.js
diff --git
a/test/data/testinit.js
b/test/data/testinit.js
index
94d18f3
..
8f431fb
100644
(file)
--- a/
test/data/testinit.js
+++ b/
test/data/testinit.js
@@
-1,7
+1,12
@@
var jQuery = this.jQuery || "jQuery", // For testing .noConflict()
$ = this.$ || "$",
originaljQuery = jQuery,
var jQuery = this.jQuery || "jQuery", // For testing .noConflict()
$ = this.$ || "$",
originaljQuery = jQuery,
- original$ = $;
+ original$ = $,
+ commonJSDefined;
+
+function define(module, dependencies, callback) {
+ commonJSDefined = callback();
+}
/**
* Returns an array of elements with the given IDs, eg.
/**
* Returns an array of elements with the given IDs, eg.
@@
-24,13
+29,13
@@
function q() {
r'
*/
function t(a,b,c) {
r'
*/
function t(a,b,c) {
- var f = jQuery(b), s = "";
+ var f = jQuery(b).get(), s = "";
for ( var i = 0; i < f.length; i++ ) {
s += (s && ",") + '"' + f[i].id + '"';
}
for ( var i = 0; i < f.length; i++ ) {
s += (s && ",") + '"' + f[i].id + '"';
}
- isSet(f, q.apply(q,c), a + " (" + b + ")");
+ same(f, q.apply(q,c), a + " (" + b + ")");
}
/**
}
/**