vendor/node_modules/cssom/test/CSSStyleDeclaration.test.js in stylus-source-0.18.0 vs vendor/node_modules/cssom/test/CSSStyleDeclaration.test.js in stylus-source-0.19.0
- old
+ new
@@ -1,25 +1,25 @@
test("CSSStyleDeclaration", function(){
var d = new CSSOM.CSSStyleDeclaration;
-
+
d.setProperty("color", "purple");
equalOwnProperties(d, {
0: "color",
length: 1,
color: "purple"
});
-
+
d.setProperty("width", "128px", "important");
equalOwnProperties(d, {
0: "color",
1: "width",
length: 2,
color: "purple",
width: "128px"
});
-
+
equal(d.cssText, "color: purple; width: 128px !important;");
-
+
equal(d.getPropertyValue("color"), "purple");
equal(d.getPropertyValue("width"), "128px");
equal(d.getPropertyValue("position"), "");
strictEqual(d.getPropertyPriority("color"), "");