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:
865706d
)
Added assertions for #750
author
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Wed, 3 Jan 2007 16:03:16 +0000
(16:03 +0000)
committer
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Wed, 3 Jan 2007 16:03:16 +0000
(16:03 +0000)
src/selector/selectorTest.js
patch
|
blob
|
history
diff --git
a/src/selector/selectorTest.js
b/src/selector/selectorTest.js
index
6171614
..
422f84a
100644
(file)
--- a/
src/selector/selectorTest.js
+++ b/
src/selector/selectorTest.js
@@
-1,12
+1,14
@@
module("selector");
\r
\r
test("expressions - element", function() {
\r
module("selector");
\r
\r
test("expressions - element", function() {
\r
- expect(5);
\r
+ expect(7);
\r
ok( $("*").size() >= 30, "Select all" );
\r
t( "Element Selector", "div", ["main","foo"] );
\r
t( "Element Selector", "body", ["body"] );
\r
t( "Element Selector", "html", ["html"] );
\r
t( "Parent Element", "div div", ["foo"] );
\r
ok( $("*").size() >= 30, "Select all" );
\r
t( "Element Selector", "div", ["main","foo"] );
\r
t( "Element Selector", "body", ["body"] );
\r
t( "Element Selector", "html", ["html"] );
\r
t( "Parent Element", "div div", ["foo"] );
\r
+ t( "Object/Param element", "#object param", ["param1", "param2"] );
\r
+ ok( $("param", $("#object")[0]).length == 2, "Object/param as context" );
\r
});
\r
\r
test("expressions - id", function() {
\r
});
\r
\r
test("expressions - id", function() {
\r
@@
-23,6
+25,7
@@
test("expressions - id", function() {
t( "All Children of ID with no children", "#firstUL/*", [] );
\r
});
\r
\r
t( "All Children of ID with no children", "#firstUL/*", [] );
\r
});
\r
\r
+
\r
test("expressions - class", function() {
\r
expect(4);
\r
t( "Class Selector", ".blog", ["mark","simon"] );
\r
test("expressions - class", function() {
\r
expect(4);
\r
t( "Class Selector", ".blog", ["mark","simon"] );
\r