aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2012-12-28 18:39:12 +0400
committerOleg <markelog@gmail.com>2012-12-28 18:54:47 +0400
commitf193acf3a1f6838f8f6b90d4038e3cd9bb89f1ba (patch)
tree527ea89ddbebacea64ac5289991388a67de83302 /test/unit
parentf7528916a29f5d8cd3d19285a67cd84ea9dcfe91 (diff)
downloadjquery-f193acf3a1f6838f8f6b90d4038e3cd9bb89f1ba.tar.gz
jquery-f193acf3a1f6838f8f6b90d4038e3cd9bb89f1ba.zip
Remove fix for #4484, add more tests
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/manipulation.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index 5cb30c81a..e88f71fda 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -395,13 +395,13 @@ var testAppendForObject = function( valueObj, isFragment ) {
var testAppend = function( valueObj ) {
- expect( 59 );
+ expect( 61 );
testAppendForObject( valueObj, false );
testAppendForObject( valueObj, true );
var defaultText, result, message, iframe, iframeDoc, j, d,
- $input, $radioChecked, $radioUnchecked, $radioParent;
+ $input, $radioChecked, $radioUnchecked, $radioParent, $map;
defaultText = "Try them out:";
result = jQuery("#first").append( valueObj("<b>buga</b>") );
@@ -446,6 +446,11 @@ var testAppend = function( valueObj ) {
jQuery("<fieldset/>").appendTo("#form").append( valueObj("<legend id='legend'>test</legend>") );
t( "Append legend", "#legend", [ "legend" ] );
+ $map = jQuery("<map/>").append( valueObj("<area id='map01' shape='rect' coords='50,50,150,150' href='http://www.jquery.com/' alt='jQuery'>") );
+
+ equal( $map[ 0 ].childNodes.length, 1, "The area was inserted." );
+ equal( $map[ 0 ].firstChild.nodeName.toLowerCase(), "area", "The area was inserted." );
+
jQuery("#select1").append( valueObj("<OPTION>Test</OPTION>") );
equal( jQuery("#select1 option:last").text(), "Test", "Appending OPTION (all caps)" );