Skip to content

Commit

Permalink
Adds a testcase for #86.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubpawlowicz committed Mar 15, 2023
1 parent a55daf0 commit dfe93e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/binary-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ vows.describe('cleancss')
}
})
})
.addBatch({
'level 0 optimizations': pipedContext('a{color:#ff0000;margin:0 0 0 0}', '-O0', {
'should skip all optimizations': function (error, stdout) {
assert.equal(stdout, 'a{color:#ff0000;margin:0 0 0 0}');
}
})
})
.addBatch({
'enable restructuring optimizations': pipedContext('div{margin-top:0}.one{margin:0}.two{display:block;margin-top:0}', '-O2 restructureRules:on', {
'should do basic optimizations only': function (error, stdout) {
Expand Down

0 comments on commit dfe93e3

Please sign in to comment.