diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-03-29 23:07:12 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-03-29 23:07:12 +0000 |
| commit | bdf1832cbc2f9e0dc7355bb7d435a9f6ab574d7e (patch) | |
| tree | 699d0ac28e621f21e9025301116bced261a6232c /tests | |
| parent | 354a6ba8f34108236879c8af4280abea74409be5 (diff) | |
Allow fresh elements to be specified
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/style-reader.tests.js | 7 |
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); + }); }) |
