Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 779c4c886d64d8b622e0e592e80204ef379568cf 1 parent 498faec
@cbumgard cbumgard authored
View
3  test/cases/cascading.out
@@ -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
3  test/cases/class+id.out
@@ -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
3  test/cases/class.out
@@ -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>
View
3  test/cases/css-quotes.out
@@ -1 +1,2 @@
-<p style="background: url(/woot);">woot</p>
+<html><body><p style="background: url(/woot);">woot</p>
+</body></html>
View
3  test/cases/direct-descendents.out
@@ -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
3  test/cases/id.out
@@ -1 +1,2 @@
-<div id="test" style="display: none;">woot</div>
+<html><body><div id="test" style="display: none;">woot</div>
+</body></html>
View
3  test/cases/ignore-pseudos.out
@@ -1 +1,2 @@
-<a href="#" style="text-decoration: underline;">Test</a>
+<html><body><a href="#" style="text-decoration: underline;">Test</a>
+</body></html>
View
3  test/cases/important.out
@@ -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
0  test/cases/jsdom.css
No changes.
View
0  test/cases/jsdom.html
No changes.
View
1  test/cases/jsdom.out
@@ -0,0 +1 @@
+<html><body></body></html>
View
3  test/cases/preserve-events.out
@@ -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>
View
3  test/cases/regression-selector-newline.out
@@ -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>
View
3  test/cases/specificity.out
@@ -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>
View
3  test/cases/style-preservation.out
@@ -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
3  test/cases/tag.out
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.