Adds more `inherit` restoring tests.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Wed, 24 Jun 2015 08:02:48 +0000 (09:02 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Wed, 24 Jun 2015 08:25:40 +0000 (09:25 +0100)
test/properties/restore-test.js

index e8ccf4e..38adf33 100644 (file)
@@ -173,7 +173,7 @@ vows.describe(restore)
       },
       'inherit': {
         'topic': function () {
-          return _restore(_breakUp([['border'], ['inherit']]));
+          return _restore(_breakUp([['border-radius'], ['inherit']]));
         },
         'gives right value back': function (restoredValue) {
           assert.deepEqual(restoredValue, [['inherit']]);
@@ -212,6 +212,14 @@ vows.describe(restore)
         'gives right value back': function (restoredValue) {
           assert.deepEqual(restoredValue, [['0px']]);
         }
+      },
+      'inherit': {
+        'topic': function () {
+          return _restore(_breakUp([['padding'], ['inherit']]));
+        },
+        'gives right value back': function (restoredValue) {
+          assert.deepEqual(restoredValue, [['inherit']]);
+        }
       }
     },
     'repeated values': {
@@ -257,6 +265,14 @@ vows.describe(restore)
           assert.deepEqual(restoredValue, [['none']]);
         }
       },
+      'border with inherit': {
+        'topic': function () {
+          return _restore(_breakUp([['border'], ['inherit']]));
+        },
+        'gives right value back': function (restoredValue) {
+          assert.deepEqual(restoredValue, [['inherit']]);
+        }
+      },
       'list with some values': {
         'topic': function () {
           return _restore(_breakUp([['list-style'], ['circle']]));
@@ -281,6 +297,14 @@ vows.describe(restore)
           assert.deepEqual(restoredValue, [['circle'], ['__ESCAPED_URL_CLEAN_CSS0__']]);
         }
       },
+      'list with inherit': {
+        'topic': function () {
+          return _restore(_breakUp([['list-style'], ['inherit']]));
+        },
+        'gives right value back': function (restoredValue) {
+          assert.deepEqual(restoredValue, [['inherit']]);
+        }
+      },
       'outline with some values': {
         'topic': function () {
           return _restore(_breakUp([['outline'], ['dotted']]));
@@ -304,6 +328,14 @@ vows.describe(restore)
         'gives right value back': function (restoredValue) {
           assert.deepEqual(restoredValue, [['0']]);
         }
+      },
+      'outline with inherit': {
+        'topic': function () {
+          return _restore(_breakUp([['outline'], ['inherit']]));
+        },
+        'gives right value back': function (restoredValue) {
+          assert.deepEqual(restoredValue, [['inherit']]);
+        }
       }
     }
   })