aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-03-29 23:07:12 +0000
committerMichael Williamson <mike@zwobble.org>2013-03-29 23:07:12 +0000
commitbdf1832cbc2f9e0dc7355bb7d435a9f6ab574d7e (patch)
tree699d0ac28e621f21e9025301116bced261a6232c /tests
parent354a6ba8f34108236879c8af4280abea74409be5 (diff)
Allow fresh elements to be specified
Diffstat (limited to 'tests')
-rw-r--r--tests/style-reader.tests.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/style-reader.tests.js b/tests/style-reader.tests.js
index 10047dc..11e5364 100644
--- a/tests/style-reader.tests.js
+++ b/tests/style-reader.tests.js
@@ -26,4 +26,11 @@ describe('styleReader.read', function() {
])
assert.deepEqual(styleReader.read("p.tip.help"), expected);
});
+
+ test('reads when element must be fresh', function() {
+ var expected = styles.elements([
+ styles.element("p", {"fresh": true})
+ ])
+ assert.deepEqual(styleReader.read("p:fresh"), expected);
+ });
})