summaryrefslogtreecommitdiff
path: root/test/sections_test.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2018-04-14 03:33:26 -0600
committerDan Allen <dan.j.allen@gmail.com>2018-04-19 01:47:05 -0600
commit3d51e447e2b2dfd8662048de0d53f627067f0fa7 (patch)
treeb286c519b3f6e50a4578e2d7760af592d9a887b8 /test/sections_test.rb
parent349a34ab1c8f63d6e7842e6ac970f4b2889456bf (diff)
resolves #2387 allow role to be set on document
- allow role to be set on document using block attribute (shorthand or longhand) - assign role to docrole attribute on document - add role to CSS classes on body in HTML5 output
Diffstat (limited to 'test/sections_test.rb')
-rw-r--r--test/sections_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/sections_test.rb b/test/sections_test.rb
index 8194104f..c98e9c41 100644
--- a/test/sections_test.rb
+++ b/test/sections_test.rb
@@ -466,8 +466,10 @@ content
doc = document_from_string input
assert_empty doc.blocks[0].attributes
output = doc.convert
+ assert_css '#idname', output, 1
assert_css 'body#idname', output, 1
- assert_css '.rolename', output, 0
+ assert_css '.rolename', output, 1
+ assert_css 'body.rolename', output, 1
end
end