Removed all the extra helper macros for 1.1, and adjusted the test suite accordingly.

This commit is contained in:
John Resig 2007-01-06 05:09:11 +00:00
parent 645570310b
commit e473f3a911
2 changed files with 523 additions and 973 deletions

View File

@ -368,27 +368,6 @@ test("html(String)", function() {
ok( pass, "Set HTML" );
});
test("id()", function() {
expect(3);
ok( $(document.getElementById('main')).id() == "main", "Check for id" );
ok( $("#foo").id() == "foo", "Check for id" );
ok( !$("head").id(), "Check for id" );
});
test("title()", function() {
expect(2);
ok( $(document.getElementById('google')).title() == "Google!", "Check for title" );
ok( !$("#yahoo").title(), "Check for title" );
});
test("name()", function() {
expect(3);
ok( $(document.getElementById('text1')).name() == "action", "Check for name" );
ok( $("#hidden1").name() == "hidden", "Check for name" );
ok( !$("#area1").name(), "Check for name" );
});
test("siblings([String])", function() {
expect(3);
isSet( $("#en").siblings().get(), q("sndp", "sap"), "Check for siblings" );

1475
src/jquery/jquery.js vendored

File diff suppressed because it is too large Load Diff