Permalink
Browse files

Adding a test file and test runner

  • Loading branch information...
jbleuzen
jbleuzen committed Apr 5, 2011
1 parent 457a91e commit 7ded3078dcebac64c65b58e9c3921d049509c1ff
Showing with 42 additions and 0 deletions.
  1. +9 −0 tests/run-test.js
  2. +33 −0 tests/test.css
View
@@ -0,0 +1,9 @@
+var puts = require('sys').puts,
+ fs = require('fs'),
+ cssmin = require('../cssmin').cssmin;
+
+var css = fs.readFileSync("test.css", encoding='utf8');
+
+var min = cssmin(css);
+
+puts(min);
View
@@ -0,0 +1,33 @@
+/*
+ * THIS FILE IS USED FOR TEST
+ * It contains some snippet that validate the module
+ */
+
+#selector1 {
+ border: 1px solid #FFF ;
+ color: pink;
+}
+
+.class1 , .class2 {
+ background-color: red;
+}
+
+/*
+ * Content with spaces between quotes
+ */
+#selector{
+ content: ' lol lol lol';
+}
+
+/*
+ * Testing 0px
+ */
+#selector1{
+ border: 0em;
+ margin: 0px;
+ padding: 0px 0px;
+}
+#selector1{
+ margin: 0px 0px 0px;
+ padding: 0px 0px 0px 0px;
+}

0 comments on commit 7ded307

Please sign in to comment.