mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
Structured Document list for more flexible UI design with CSS (#17924).
Patch by Yonghwan SO and Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@21403 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -57,7 +57,7 @@ class DocumentsControllerTest < Redmine::ControllerTest
|
||||
assert_select '#content' do
|
||||
# ascending order of DocumentCategory#id.
|
||||
['Uncategorized', 'Technical documentation'].each_with_index do |text, idx|
|
||||
assert_select "h3:nth-of-type(#{idx + 1})", :text => text
|
||||
assert_select ".document-group:nth-of-type(#{idx + 1}) h3.group-name", :text => text
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -74,7 +74,7 @@ class DocumentsControllerTest < Redmine::ControllerTest
|
||||
assert_select '#content' do
|
||||
# descending order of date.
|
||||
['2007-03-05', '2007-02-12'].each_with_index do |text, idx|
|
||||
assert_select "h3:nth-of-type(#{idx + 1})", :text => text
|
||||
assert_select ".document-group:nth-of-type(#{idx + 1}) h3.group-name", :text => text
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -91,7 +91,7 @@ class DocumentsControllerTest < Redmine::ControllerTest
|
||||
assert_select '#content' do
|
||||
# ascending order of title.
|
||||
['A', 'T'].each_with_index do |text, idx|
|
||||
assert_select "h3:nth-of-type(#{idx + 1})", :text => text
|
||||
assert_select ".document-group:nth-of-type(#{idx + 1}) h3.group-name", :text => text
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -108,7 +108,7 @@ class DocumentsControllerTest < Redmine::ControllerTest
|
||||
assert_select '#content' do
|
||||
# ascending order of author.
|
||||
['John Smith', 'Redmine Admin'].each_with_index do |text, idx|
|
||||
assert_select "h3:nth-of-type(#{idx + 1})", :text => text
|
||||
assert_select ".document-group:nth-of-type(#{idx + 1}) h3.group-name", :text => text
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user