From de4e28e1ba8cad85818b298009dca8098005c673 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Wed, 31 Jan 2007 21:56:32 +0000 Subject: [PATCH] Added test for #745 --- build/test/index.html | 2 +- src/jquery/coreTest.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build/test/index.html b/build/test/index.html index ffeb9f9..1a00fd7 100644 --- a/build/test/index.html +++ b/build/test/index.html @@ -30,7 +30,7 @@

Everything inside the red border is inside a div with id="foo".

This is a normal link: Yahoo

-

This link has class="blog": Simon Willison's Weblog

+

This link has class="blog": Simon Willison's Weblog

Try them out:

diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 6b73b0c..a753315 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() { -- 1.7.10.4