Skip to content
Permalink
Browse files

Fixed test for object/param selection (thanks Andrea)

  • Loading branch information
jzaefferer committed Jan 7, 2007
1 parent d7b73ea commit 955fdb87a72e0d85676db932eda9f6a4319306d9
Showing with 4 additions and 5 deletions.
  1. +2 −2 build/test/index.html
  2. +2 −3 src/selector/selectorTest.js
@@ -74,8 +74,8 @@ <h2 id="userAgent"></h2>
</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>
@@ -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() {

0 comments on commit 955fdb8

Please sign in to comment.
You can’t perform that action at this time.