diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-04-22 13:57:26 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-04-22 13:57:26 +0100 |
| commit | 65471a07ee4b37b1133f9934e3a8e7d8df4b8ba9 (patch) | |
| tree | 0800c0daf5a55442a4366066a9fbb9cd34fc7c4d /tests | |
| parent | 8ec07d0d766a6d3d9b94e07b0a0fc655c18e2b20 (diff) | |
Add parsing for style name matchers
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 61ba28b..4b36a0a 100644 --- a/tests/style-reader.tests.js +++ b/tests/style-reader.tests.js @@ -62,6 +62,13 @@ describe("styleReader.readDocumentMatcher", function() { ); }); + test("reads paragraph with style name", function() { + assert.deepEqual( + readDocumentMatcher("p[name='Heading 1']"), + documentMatchers.paragraph({styleName: "Heading 1"}) + ); + }); + test("reads p:ordered-list(1) as ordered list with index of 0", function() { assert.deepEqual( readDocumentMatcher("p:ordered-list(1)"), |
