stylecow-core
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -16,2 +16,3 @@ "use strict"; | ||
let element = (new stylecow.Function(reader.data())).setNameWithVendor(reader.getStringAndMove()); | ||
let value; | ||
@@ -24,3 +25,3 @@ reader.move(); | ||
case 'domain': | ||
var value = new stylecow.Value(); | ||
value = new stylecow.Value(); | ||
element.push(value); | ||
@@ -44,2 +45,8 @@ | ||
case 'element': | ||
value = new stylecow.Value(); | ||
element.push(value); | ||
value.push(stylecow.IdSelector.create(reader, element) || reader.error()); | ||
break; | ||
default: | ||
@@ -46,0 +53,0 @@ do { |
@@ -5,3 +5,3 @@ { | ||
"keywords": ["css", "parser", "processor", "sourcemap"], | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"engines": { | ||
@@ -8,0 +8,0 @@ "node": ">=4.0" |
@@ -6,3 +6,3 @@ var assert = require('assert'); | ||
cases.filter(['keyframes-complex']).run(function (test) { | ||
cases.run(function (test) { | ||
describe('cases/' + test.name, function() { | ||
@@ -9,0 +9,0 @@ it('should match output.css', function() { |
@@ -5,3 +5,3 @@ var assert = require('assert'); | ||
var test = new stylecow.Test(__dirname + '/tests'); | ||
var code = new stylecow.Coder(); | ||
var normal = new stylecow.Coder(); | ||
var minifier = new stylecow.Coder('minify'); | ||
@@ -11,4 +11,2 @@ | ||
describe('tests/' + test.name, function() { | ||
this.timeout(6000); | ||
it('should match output.css', function() { | ||
@@ -24,19 +22,20 @@ //test.writeString() | ||
var normalCode = normal.run(test.css); | ||
var minifyCode = minifier.run(test.css, 'output.min.css', 'output.min.map'); | ||
it('should match output.normal.css', function() { | ||
//test.write('output.normal.css', coder.code); | ||
assert.equal(test.normalize(code.run(test.css).css), test.read('output.normal.css')); | ||
//test.write('output.normal.css', normalCode.css); | ||
assert.equal(test.normalize(normalCode.css), test.read('output.normal.css')); | ||
}); | ||
var minify = minifier.run(test.css, 'output.min.css', 'output.min.map'); | ||
it('should match output.min.css', function() { | ||
//test.write('output.min.css', minify.css); | ||
assert.equal(test.normalize(minify.css), test.read('output.min.css')); | ||
//test.write('output.min.css', minifyCode.css); | ||
assert.equal(test.normalize(minifyCode.css), test.read('output.min.css')); | ||
}); | ||
it('should match output.min.map', function() { | ||
//test.write('output.min.map', minify.map); | ||
assert.equal(test.normalize(minify.map), test.read('output.min.map')); | ||
//test.write('output.min.map', minifyCode.map); | ||
assert.equal(test.normalize(minifyCode.map), test.read('output.min.map')); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59718834
279
386549