aboutsummaryrefslogtreecommitdiffstats
path: root/src/jquery
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2007-01-31 21:56:32 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2007-01-31 21:56:32 +0000
commitde4e28e1ba8cad85818b298009dca8098005c673 (patch)
tree6847f9cd89d52d4b2f9fff4d8ac99451db29354f /src/jquery
parentd4849a0d3589ea3d369137f79b102eb68403b489 (diff)
downloadjquery-de4e28e1ba8cad85818b298009dca8098005c673.tar.gz
jquery-de4e28e1ba8cad85818b298009dca8098005c673.zip
Added test for #745
Diffstat (limited to 'src/jquery')
-rw-r--r--src/jquery/coreTest.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js
index 6b73b0cf7..a75331558 100644
--- a/src/jquery/coreTest.js
+++ b/src/jquery/coreTest.js
@@ -74,7 +74,7 @@ test("index(Object)", function() {
});
test("attr(String)", function() {
- expect(12);
+ expect(13);
ok( $('#text1').attr('value') == "Test", 'Check for value attribute' );
ok( $('#text1').attr('type') == "text", 'Check for type attribute' );
ok( $('#radio1').attr('type') == "radio", 'Check for type attribute' );
@@ -87,6 +87,7 @@ test("attr(String)", function() {
ok( $('#name').attr('name') == "name", 'Check for name attribute' );
ok( $('#text1').attr('name') == "action", 'Check for name attribute' );
ok( $('#form').attr('action').indexOf("formaction") >= 0, 'Check for action attribute' );
+ ok( $('#anchor2').attr('href') == "#2", 'Check for non-absolute href (an anchor)' );
});
test("attr(String, Function)", function() {