mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fixed test for object/param selection (thanks Andrea)
This commit is contained in:
parent
d7b73ea5c7
commit
955fdb87a7
@ -74,8 +74,8 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<object id="object1" codebase="stupid">
|
<object id="object1" codebase="stupid">
|
||||||
<param id="param1" />
|
<param name="p1" value="x1" />
|
||||||
<param id="param2" />
|
<param name="p2" value="x2" />
|
||||||
</object>
|
</object>
|
||||||
</form>
|
</form>
|
||||||
<b id="floatTest">Float test.</b>
|
<b id="floatTest">Float test.</b>
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
module("selector");
|
module("selector");
|
||||||
|
|
||||||
test("expressions - element", function() {
|
test("expressions - element", function() {
|
||||||
expect(7);
|
expect(6);
|
||||||
ok( $("*").size() >= 30, "Select all" );
|
ok( $("*").size() >= 30, "Select all" );
|
||||||
t( "Element Selector", "div", ["main","foo"] );
|
t( "Element Selector", "div", ["main","foo"] );
|
||||||
t( "Element Selector", "body", ["body"] );
|
t( "Element Selector", "body", ["body"] );
|
||||||
t( "Element Selector", "html", ["html"] );
|
t( "Element Selector", "html", ["html"] );
|
||||||
t( "Parent Element", "div div", ["foo"] );
|
t( "Parent Element", "div div", ["foo"] );
|
||||||
t( "Object/Param element", "#object1 param", ["param1", "param2"] );
|
ok( $("param", "#object1").length == 2, "Object/param as context" );
|
||||||
ok( $("param", $("#object1")[0]).length == 2, "Object/param as context" );
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("expressions - id", function() {
|
test("expressions - id", function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user