diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2007-01-07 10:26:58 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2007-01-07 10:26:58 +0000 |
commit | 955fdb87a72e0d85676db932eda9f6a4319306d9 (patch) | |
tree | 2df2030eabdcb754748467b21f340fff90d82fd4 | |
parent | d7b73ea5c7440c49c804b3cafe67e84aafbdd064 (diff) | |
download | jquery-955fdb87a72e0d85676db932eda9f6a4319306d9.tar.gz jquery-955fdb87a72e0d85676db932eda9f6a4319306d9.zip |
Fixed test for object/param selection (thanks Andrea)
-rw-r--r-- | build/test/index.html | 4 | ||||
-rw-r--r-- | src/selector/selectorTest.js | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/build/test/index.html b/build/test/index.html index 081fb1199..9718ece6c 100644 --- a/build/test/index.html +++ b/build/test/index.html @@ -74,8 +74,8 @@ </select> <object id="object1" codebase="stupid"> - <param id="param1" /> - <param id="param2" /> + <param name="p1" value="x1" /> + <param name="p2" value="x2" /> </object> </form> <b id="floatTest">Float test.</b> diff --git a/src/selector/selectorTest.js b/src/selector/selectorTest.js index aded7cd2f..945455ce3 100644 --- a/src/selector/selectorTest.js +++ b/src/selector/selectorTest.js @@ -1,14 +1,13 @@ module("selector");
test("expressions - element", function() {
- expect(7);
+ expect(6);
ok( $("*").size() >= 30, "Select all" );
t( "Element Selector", "div", ["main","foo"] );
t( "Element Selector", "body", ["body"] );
t( "Element Selector", "html", ["html"] );
t( "Parent Element", "div div", ["foo"] );
- t( "Object/Param element", "#object1 param", ["param1", "param2"] );
- ok( $("param", $("#object1")[0]).length == 2, "Object/param as context" );
+ ok( $("param", "#object1").length == 2, "Object/param as context" );
});
test("expressions - id", function() {
|