Permalink
Browse files

fixed test case expected outputs to have starting and ending <html> a…

…nd <body> tags as jsdom appends them in its html() function if they do not exist
  • Loading branch information...
cbumgard committed Dec 13, 2012
1 parent 498faec commit 779c4c886d64d8b622e0e592e80204ef379568cf
View
@@ -1,4 +1,4 @@
-<ul>
+<html><body><ul>
<li style="display: block; color: #f00;">
<ul>
<li style="display: block; color: #f00;">
@@ -9,3 +9,4 @@
</ul>
</li>
</ul>
+</body></html>
View
@@ -1 +1,2 @@
-<p id="test" class="woot" style="border: 1px solid #f00; display: inline-block;">Woot</p>
+<html><body><p id="test" class="woot" style="border: 1px solid #f00; display: inline-block;">Woot</p>
+</body></html>
View
@@ -1,2 +1,3 @@
+<html><body><div class="woot" style="overflow: hidden;">Test</div>
<div class="woot" style="overflow: hidden;">Test</div>
-<div class="woot" style="overflow: hidden;">Test</div>
+</body></html>
@@ -1 +1,2 @@
-<p style="background: url(/woot);">woot</p>
+<html><body><p style="background: url(/woot);">woot</p>
+</body></html>
@@ -1 +1,2 @@
-<p><em style="background: blue; color: red;"><em style="background: blue;">woot</em></em></p>
+<html><body><p><em style="background: blue; color: red;"><em style="background: blue;">woot</em></em></p>
+</body></html>
View
@@ -1 +1,2 @@
-<div id="test" style="display: none;">woot</div>
+<html><body><div id="test" style="display: none;">woot</div>
+</body></html>
@@ -1 +1,2 @@
-<a href="#" style="text-decoration: underline;">Test</a>
+<html><body><a href="#" style="text-decoration: underline;">Test</a>
+</body></html>
View
@@ -1 +1,2 @@
-<a id="a" style="color: red; background: blue; border-style: dashed;">woot</a>
+<html><body><a id="a" style="color: red; background: blue; border-style: dashed;">woot</a>
+</body></html>
View
No changes.
View
No changes.
View
@@ -0,0 +1 @@
+<html><body></body></html>
@@ -1,2 +1,3 @@
-<a href="#" onclick="return false;">Google</a>
+<html><body><a href="#" onclick="return false;">Google</a>
<p onclick="return false;" style="color: red;">Google</p>
+</body></html>
@@ -1,2 +1,3 @@
-<a href="#" style="color: red;">Test</a>
+<html><body><a href="#" style="color: red;">Test</a>
<p style="color: red;">Test</p>
+</body></html>
@@ -1,5 +1,6 @@
-<div id="wrap" a="b">
+<html><body><div id="wrap" a="b">
<div class="wrap" id="wrap-2" style="display: inline-block;">
<div id="a" style="color: red; display: block; background: green; border-color: green;"></div>
</div>
</div>
+</body></html>
@@ -1 +1,2 @@
-<p style="color: red; background: blue;">The color should stay intact</p>
+<html><body><p style="color: red; background: blue;">The color should stay intact</p>
+</body></html>
View
@@ -1 +1,2 @@
-<p style="border: 1px solid #f00; margin: 1px;">Test</p>
+<html><body><p style="border: 1px solid #f00; margin: 1px;">Test</p>
+</body></html>

0 comments on commit 779c4c8

Please sign in to comment.