});
test("html(String)", function() {
- expect(1);
+ expect(3);
var div = $("div");
div.html("<b>test</b>");
var pass = true;
}
ok( pass, "Set HTML" );
- // Ccommented out until we can resolve it
- // $("#main").html('<script type="text/javascript">ok( true, "$().html().evalScripts() Evals Scripts Twice in Firefox, see #975" );</script>').evalScripts();
+ stop();
+
+ $("#main").html('<script type="text/javascript">ok( true, "$().html().evalScripts() Evals Scripts Twice in Firefox, see #975" );</script>');
+
+ $("#main").html('foo <form><script type="text/javascript">ok( true, "$().html().evalScripts() Evals Scripts Twice in Firefox, see #975" );</script></form>');
+
+ setTimeout( start, 100 );
});
test("filter()", function() {
});
test("slice()", function() {
- expect(4);
+ expect(5);
isSet( $("#ap a").slice(1,2), q("groups"), "slice(1,2)" );
isSet( $("#ap a").slice(1), q("groups", "anchor1", "mark"), "slice(1)" );
isSet( $("#ap a").slice(0,3), q("google", "groups", "anchor1"), "slice(0,3)" );
isSet( $("#ap a").slice(-1), q("mark"), "slice(-1)" );
+
+ isSet( $("#ap a").eq(1), q("groups"), "eq(1)" );
});
test("map()", function() {