aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-05-04 10:58:06 +0100
committerMichael Williamson <mike@zwobble.org>2013-05-04 10:58:06 +0100
commita78d8242d2be4377accfb95447d549828f08dbd0 (patch)
treed6909620c20ffb0fc6e613afde31c033515a9a49 /tests
parent4da89717caa2ae0ab28f7e50aa56031e39dcdf9b (diff)
Add parsing for unordered lists
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 134eefe..12dafca 100644
--- a/tests/style-reader.tests.js
+++ b/tests/style-reader.tests.js
@@ -60,6 +60,13 @@ describe("styleReader.readDocumentMatcher", function() {
);
});
+ test("reads p:unordered-list(1) as unordered list with index of 0", function() {
+ assert.deepEqual(
+ readDocumentMatcher("p:unordered-list(1)"),
+ documentMatchers.paragraph().unorderedList(0)
+ );
+ });
+
test("reads plain run", function() {
assert.deepEqual(
readDocumentMatcher("r"),