git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reverted optimization to jQuery function, fixing broken jQuery-as-context, added...
[jquery.git]
/
src
/
jquery
/
coreTest.js
diff --git
a/src/jquery/coreTest.js
b/src/jquery/coreTest.js
index
f736d4d
..
0f1e0f5
100644
(file)
--- a/
src/jquery/coreTest.js
+++ b/
src/jquery/coreTest.js
@@
-11,6
+11,11
@@
test("Basic requirements", function() {
ok( $, "$()" );
\r
});
\r
\r
ok( $, "$()" );
\r
});
\r
\r
+test("$()", function() {
\r
+ var main = $("#main");
\r
+ isSet( $("div p", main).get(), q("sndp", "en", "sap"), "Basic selector with jQuery object as context" );
\r
+});
\r
+
\r
test("length", function() {
\r
ok( $("div").length == 2, "Get Number of Elements Found" );
\r
});
\r
test("length", function() {
\r
ok( $("div").length == 2, "Get Number of Elements Found" );
\r
});
\r
@@
-82,8
+87,9
@@
test("attr(String)", function() {
});
\r
\r
test("attr(String, Function)", function() {
\r
});
\r
\r
test("attr(String, Function)", function() {
\r
- expect(1);
\r
+ expect(2);
\r
ok( $('#text1').attr('value', function() { return this.id })[0].value == "text1", "Set value from id" );
\r
ok( $('#text1').attr('value', function() { return this.id })[0].value == "text1", "Set value from id" );
\r
+ ok( $('#text1').attr('title', function(i) { return i }).attr('title') == "0", "Set value with an index");
\r
});
\r
\r
test("attr(Hash)", function() {
\r
});
\r
\r
test("attr(Hash)", function() {
\r