Bug Tracker

Ticket #6782: manipulation-innerHTML-tests.txt

File manipulation-innerHTML-tests.txt, 1.4 KB (added by cmcnulty, 4 years ago)
Line 
1*** C:/Users/Charlie/Desktop/jquery-jquery-efe51cd/test/unit/manipulation - original.js Sat Jul 10 21:53:21 2010
2--- C:/Users/Charlie/Desktop/jquery-jquery-efe51cd/test/unit/manipulation.js    Sat Jul 10 23:17:56 2010
3***************
4*** 866,872 ****
5  }
6 
7  var testHtml = function(valueObj) {
8!       expect(31);
9 
10        jQuery.scriptorder = 0;
11 
12--- 866,872 ----
13  }
14 
15  var testHtml = function(valueObj) {
16!       expect(35);
17 
18        jQuery.scriptorder = 0;
19 
20***************
21*** 893,898 ****
22--- 893,911 ----
23        equals( jQuery("#main").children()[0].nodeName.toUpperCase(), "STYLE", "And that a style element was inserted." );
24 
25        reset();
26+       
27+    jQuery("#main").html(valueObj("<embed src='data/cow.jpg'></embed>"));
28+    ok((jQuery("#main").children().length > 0), "Make sure there is a child EMBED element." );
29+    equals( jQuery("#main").children()[0].nodeName.toUpperCase(), "EMBED", "And that an embed element was inserted." );
30+   
31+    reset();
32+
33+    jQuery("#main").html(valueObj("<object data='data/cow.jpg'></object>"));
34+    equals( jQuery("#main").children().length, 1, "Make sure there is a child OBJECT element." );
35+    equals( jQuery("#main").children()[0].nodeName.toUpperCase(), "OBJECT", "And that an object element was inserted." );
36+   
37+    reset();   
38+       
39        // using contents will get comments regular, text, and comment nodes
40        var j = jQuery("#nonnodes").contents();
41        j.html(valueObj("<b>bold</b>"));