diff options
| author | Guillaume Grossetie <ggrossetie@gmail.com> | 2018-04-22 04:53:58 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2018-04-23 23:58:42 -0600 |
| commit | 114bad0091c032b4eb3cc35ed4e6676d79eaa36e (patch) | |
| tree | 64e9fc2e95466042defa94447e1769d40964adc7 /test/lists_test.rb | |
| parent | 2eb43353e801e42fcd571c3b9f9a2b09822179fa (diff) | |
populate source_location on list items if sourcemap is enabled
- set the source_location property on each list item in an item list
- set the source_location property on each list term in a description list
- set the source_location property on each list item in a description list
Diffstat (limited to 'test/lists_test.rb')
| -rw-r--r-- | test/lists_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lists_test.rb b/test/lists_test.rb index f22770cb..2e0a8559 100644 --- a/test/lists_test.rb +++ b/test/lists_test.rb @@ -4628,5 +4628,11 @@ listing block in list item 1 assert_equal 1, lists[0].lineno assert_equal 2, lists[1].lineno assert_equal 3, lists[2].lineno + + list_items = doc.find_by :context => :list_item + assert_equal 1, list_items[0].lineno + assert_equal 2, list_items[1].lineno + assert_equal 3, list_items[2].lineno + assert_equal 4, list_items[3].lineno end end |
