Skip to content

Commit dfe93e3

Browse files
Adds a testcase for #86.
1 parent a55daf0 commit dfe93e3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/binary-test.js

+7
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ vows.describe('cleancss')
156156
}
157157
})
158158
})
159+
.addBatch({
160+
'level 0 optimizations': pipedContext('a{color:#ff0000;margin:0 0 0 0}', '-O0', {
161+
'should skip all optimizations': function (error, stdout) {
162+
assert.equal(stdout, 'a{color:#ff0000;margin:0 0 0 0}');
163+
}
164+
})
165+
})
159166
.addBatch({
160167
'enable restructuring optimizations': pipedContext('div{margin-top:0}.one{margin:0}.two{display:block;margin-top:0}', '-O2 restructureRules:on', {
161168
'should do basic optimizations only': function (error, stdout) {

0 commit comments

Comments
 (0)