Skip to content

Commit

Permalink
Dom: removed duplicate unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
Frances Berriman committed Sep 24, 2009
1 parent 7a1e5fd commit 93b9eb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/glow/dom/dom.js
Expand Up @@ -1744,14 +1744,14 @@ t.test("glow.dom.NodeList.replaceWith special cases", function () {

t.test("glow.dom.NodeList#wrap", function () {

t.expect(6);
t.expect(5);

var testDoc = glow.dom.create("<p class='gift'><span>Shiny toys</span></p>").appendTo(document.body);
var testDoc = glow.dom.get(".gift").wrap("<div id='giftwrap'><span class='tissuepaper'></span></div>");

// Test that the wrapped item has the correct new parent
t.ok(glow.dom.get(".gift").parent().hasClass("tissuepaper"), "Wrapped item has new correct parent");

t.ok(glow.dom.get(".gift").parent().hasClass("tissuepaper"), "Wrapped item has correct new parent");

glow.dom.get("#giftwrap").remove();

Expand Down

0 comments on commit 93b9eb9

Please sign in to comment.