diff options
author | cmcnulty <cmcnulty@kznf.com> | 2011-02-25 11:45:04 -0800 |
---|---|---|
committer | cmcnulty <cmcnulty@kznf.com> | 2011-02-25 11:45:04 -0800 |
commit | 8415e8a13d0e1203a53d9c871fdcc4575c9d0760 (patch) | |
tree | b070219be16d0b25fe5396610f344dc92463d162 /test/unit/manipulation.js | |
parent | 00a05ad98513d037d1fde190626ec75dd9326f9e (diff) | |
download | jquery-8415e8a13d0e1203a53d9c871fdcc4575c9d0760.tar.gz jquery-8415e8a13d0e1203a53d9c871fdcc4575c9d0760.zip |
Diffstat (limited to 'test/unit/manipulation.js')
-rw-r--r-- | test/unit/manipulation.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 34425ed3a..e05200c4c 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -1080,6 +1080,19 @@ var testHtml = function(valueObj) { equals( jQuery("#main").children()[0].nodeName.toUpperCase(), "STYLE", "And that a style element was inserted." ); QUnit.reset(); + + jQuery("#main").html(valueObj("<embed src='data/cow.jpg'></embed>")); + ok((jQuery("#main").children().length > 0), "Make sure there is a child EMBED element." ); + equals( jQuery("#main").children()[0].nodeName.toUpperCase(), "EMBED", "And that an embed element was inserted." ); + + QUnit.reset(); + + jQuery("#main").html(valueObj("<object data='data/cow.jpg'></object>")); + equals( jQuery("#main").children().length, 1, "Make sure there is a child OBJECT element." ); + equals( jQuery("#main").children()[0].nodeName.toUpperCase(), "OBJECT", "And that an object element was inserted." ); + + QUnit.reset(); + // using contents will get comments regular, text, and comment nodes var j = jQuery("#nonnodes").contents(); j.html(valueObj("<b>bold</b>")); |