aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/attributes.js
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2012-11-27 21:32:59 -0500
committerDave Methvin <dave.methvin@gmail.com>2012-11-27 21:32:59 -0500
commit9ae6b1a019553e95a6205d5c42ff7fa25e7a482e (patch)
tree817caf8131b6b1c6ed0fb8fd01b6c2918293e2ba /test/unit/attributes.js
parent1052f9cb2bad094144fa1186b0be8f477a9d4fa1 (diff)
downloadjquery-9ae6b1a019553e95a6205d5c42ff7fa25e7a482e.tar.gz
jquery-9ae6b1a019553e95a6205d5c42ff7fa25e7a482e.zip
Fix #12957. Simplify wrapMap, it doesn't need end tags. Close gh-1044.
Diffstat (limited to 'test/unit/attributes.js')
-rw-r--r--test/unit/attributes.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/unit/attributes.js b/test/unit/attributes.js
index 7b2f21ad0..db18d4543 100644
--- a/test/unit/attributes.js
+++ b/test/unit/attributes.js
@@ -94,7 +94,7 @@ test( "attr(String)", function() {
equal( jQuery("#tAnchor5").attr("href"), "#5", "Check for non-absolute href (an anchor)" );
jQuery("<a id='tAnchor6' href='#5' />").appendTo("#qunit-fixture");
equal( jQuery("#tAnchor5").prop("href"), jQuery("#tAnchor6").prop("href"), "Check for absolute href prop on an anchor" );
-
+
$("<script type='jquery/test' src='#5' id='scriptSrc'></script>").appendTo("#qunit-fixture");
equal( jQuery("#tAnchor5").prop("href"), jQuery("#scriptSrc").prop("src"), "Check for absolute src prop on a script" );
@@ -1298,14 +1298,11 @@ test( "contents().hasClass() returns correct values", function() {
});
test( "coords returns correct values in IE6/IE7, see #10828", function() {
- expect( 2 );
+ expect( 1 );
var area,
map = jQuery("<map />");
area = map.html("<area shape='rect' coords='0,0,0,0' href='#' alt='a' />").find("area");
equal( area.attr("coords"), "0,0,0,0", "did not retrieve coords correctly" );
-
- area = map.html("<area shape='rect' href='#' alt='a' /></map>").find("area");
- equal( area.attr("coords"), undefined, "did not retrieve coords correctly" );
});