* Adds inferring proxy settings from HTTP_PROXY environment variable.
* Adds support for Polymer / Web Components special selectors.
* Adds support for Polymer mixins.
+* Adds testing source maps in batch mode.
* Unifies wrappers for simple & advanced optimizations.
* Fixed issue [#596](https://github.com/jakubpawlowicz/clean-css/issues/596) - support for !ie IE<8 hack.
* Fixed issue [#599](https://github.com/jakubpawlowicz/clean-css/issues/599) - support for inlined source maps.
root: path.dirname(plainPath)
};
},
- minifying: {
+ 'minifying': {
topic: function (data) {
var self = this;
var minifiedTokens = minified.split(lineBreak);
var preminifiedTokens = data.preminified.split(lineBreak);
+ minifiedTokens.forEach(function (line, i) {
+ assert.equal(line, preminifiedTokens[i]);
+ });
+ }
+ },
+ 'minifying with source maps': {
+ topic: function (data) {
+ var self = this;
+
+ new CleanCSS({
+ keepBreaks: true,
+ sourceMap: true,
+ root: data.root
+ }).minify(data.plain, function (errors, minified) {
+ self.callback(errors, minified.styles, data);
+ });
+ },
+ 'should output right content': function (errors, minified, data) {
+ var minifiedTokens = minified.split(lineBreak);
+ var preminifiedTokens = data.preminified.split(lineBreak);
+
minifiedTokens.forEach(function (line, i) {
assert.equal(line, preminifiedTokens[i]);
});