cssstyle 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- // autogenerated - 2/16/2019
3
+ // autogenerated - 3/27/2019
4
4
 
5
5
  /*
6
6
  *
@@ -146,5 +146,7 @@
146
146
  "white",
147
147
  "whitesmoke",
148
148
  "yellow",
149
- "yellowgreen"
149
+ "yellowgreen",
150
+ "transparent",
151
+ "currentcolor"
150
152
  ]
package/lib/properties.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- // autogenerated - 2/16/2019
3
+ // autogenerated - 3/27/2019
4
4
 
5
5
  /*
6
6
  *
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "CSSStyleDeclaration",
7
7
  "StyleSheet"
8
8
  ],
9
- "version": "1.2.1",
9
+ "version": "1.2.2",
10
10
  "homepage": "https://github.com/jsakas/CSSStyleDeclaration",
11
11
  "maintainers": [
12
12
  {
@@ -67,7 +67,7 @@
67
67
  "generate:properties": "node ./scripts/generate_properties.js",
68
68
  "lint": "npm run generate && eslint . --max-warnings 0",
69
69
  "lint:fix": "eslint . --fix --max-warnings 0",
70
- "prepublishOnly": "test-ci",
70
+ "prepublishOnly": "npm run test-ci",
71
71
  "test": "npm run generate && nodeunit tests",
72
72
  "test-ci": "npm run lint && npm run test"
73
73
  },
package/tests/tests.js CHANGED
@@ -215,7 +215,7 @@ module.exports = {
215
215
  },
216
216
  'Test colors': function(test) {
217
217
  var style = new cssstyle.CSSStyleDeclaration();
218
- test.expect(7);
218
+ test.expect(9);
219
219
  style.color = 'rgba(0,0,0,0)';
220
220
  test.ok('rgba(0, 0, 0, 0)' === style.color, 'color is not rgba(0, 0, 0, 0)');
221
221
  style.color = 'rgba(5%, 10%, 20%, 0.4)';
@@ -233,6 +233,10 @@ module.exports = {
233
233
  test.ok('hsl(0, 1%, 2%)' === style.color, 'color is not hsl(0, 1%, 2%) ' + style.color);
234
234
  style.color = 'rebeccapurple';
235
235
  test.ok('rebeccapurple' === style.color, 'color is not rebeccapurple ' + style.color);
236
+ style.color = 'transparent';
237
+ test.ok('transparent' === style.color, 'color is not transparent ' + style.color);
238
+ style.color = 'currentcolor';
239
+ test.ok('currentcolor' === style.color, 'color is not currentcolor ' + style.color);
236
240
  test.done();
237
241
  },
238
242
  'Test short hand properties with embedded spaces': function(test) {
package/.npmignore DELETED
@@ -1 +0,0 @@
1
- node_module