Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #13 from cbumgard/master

New regression tests; fixed existing tests; bumped version
  • Loading branch information...
commit 69605a0b3af4b3d53fd93119ab105b8ae93a6d79 2 parents aa64ca8 + 5d51b32
Guillermo Rauch rauchg authored
2  package.json
View
@@ -1,6 +1,6 @@
{
"name": "juice"
- , "version": "0.0.6"
+ , "version": "0.0.7"
, "description": "Inlines css into html source"
, "contributors": [
{ "name": "Guillermo Rauch", "email": "guillermo@learnboost.com" }
3  test/cases/cascading.out
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>
3  test/cases/class+id.out
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>
3  test/cases/class.out
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>
3  test/cases/css-quotes.out
View
@@ -1 +1,2 @@
-<p style="background: url(/woot);">woot</p>
+<html><body><p style="background: url(/woot);">woot</p>
+</body></html>
3  test/cases/direct-descendents.out
View
@@ -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>
3  test/cases/id.out
View
@@ -1 +1,2 @@
-<div id="test" style="display: none;">woot</div>
+<html><body><div id="test" style="display: none;">woot</div>
+</body></html>
3  test/cases/ignore-pseudos.out
View
@@ -1 +1,2 @@
-<a href="#" style="text-decoration: underline;">Test</a>
+<html><body><a href="#" style="text-decoration: underline;">Test</a>
+</body></html>
3  test/cases/important.out
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>
0  test/cases/jsdom.css
View
No changes.
0  test/cases/jsdom.html
View
No changes.
1  test/cases/jsdom.out
View
@@ -0,0 +1 @@
+<html><body></body></html>
3  test/cases/preserve-events.out
View
@@ -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>
8 test/cases/regression-media.css
View
@@ -0,0 +1,8 @@
+a,
+p {
+ color: green;
+}
+
+@media only screen and (max-width: 600px) {
+ a { color: red; }
+}
2  test/cases/regression-media.html
View
@@ -0,0 +1,2 @@
+<a href="#">Test</a>
+<p>Test</p>
3  test/cases/regression-media.out
View
@@ -0,0 +1,3 @@
+<html><body><a href="#" style="color: green;">Test</a>
+<p style="color: green;">Test</p>
+</body></html>
3  test/cases/regression-selector-newline.out
View
@@ -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>
3  test/cases/specificity.out
View
@@ -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>
3  test/cases/style-preservation.out
View
@@ -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>
3  test/cases/tag.out
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>
Please sign in to comment.
Something went wrong with that request. Please try again.