summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-05-04 10:53:21 +0100
committerMichael Williamson <mike@zwobble.org>2013-05-04 10:53:21 +0100
commit4da89717caa2ae0ab28f7e50aa56031e39dcdf9b (patch)
treee48b4bbabac76ed69e9ffd7ec2638b266c3be4ca /tests
parent7738fefabc6f717c1d5e2459dabadea0fa588def (diff)
Add parsing for p:ordered-list(n)
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 d406f48..134eefe 100644
--- a/tests/style-reader.tests.js
+++ b/tests/style-reader.tests.js
@@ -53,6 +53,13 @@ describe("styleReader.readDocumentMatcher", function() {
);
});
+ test("reads p:ordered-list(1) as ordered list with index of 0", function() {
+ assert.deepEqual(
+ readDocumentMatcher("p:ordered-list(1)"),
+ documentMatchers.paragraph().orderedList(0)
+ );
+ });
+
test("reads plain run", function() {
assert.deepEqual(
readDocumentMatcher("r"),