diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-06-06 23:58:56 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2019-06-07 00:01:24 -0600 |
| commit | 935936aa7ff3b54dfd07a5ed84e767a217bdb66d (patch) | |
| tree | 9cc0f5de8df6690823390478f5fe7080f0b0651b /test | |
| parent | 35c1f9a8f7c1cee310d6c1d1ad46ec5ae4702d54 (diff) | |
resolves #3321 add test to assert checkbox cannot be followed by tab
Diffstat (limited to 'test')
| -rw-r--r-- | test/lists_test.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/lists_test.rb b/test/lists_test.rb index 387112ac..b454a949 100644 --- a/test/lists_test.rb +++ b/test/lists_test.rb @@ -5195,6 +5195,19 @@ context 'Checklists' do assert_css '.ulist.checklist li input[type="checkbox"][disabled]', output, 0 assert_css '.ulist.checklist li input[type="checkbox"][checked]', output, 1 end + + test 'should not create checklist if checkbox on item is followed by a tab' do + ['[ ]', '[x]', '[*]'].each do |checkbox| + input = <<~EOS + - #{checkbox}\ttodo + EOS + + doc = document_from_string input + list = doc.blocks[0] + assert_equal :ulist, list.context + refute list.option?('checklist') + end + end end context 'Lists model' do |
