summaryrefslogtreecommitdiffstats
path: root/test/unit/lib/redmine/helpers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-08-12 04:21:32 +0000
committerGo MAEDA <maeda@farend.jp>2020-08-12 04:21:32 +0000
commit1712ff07857b7a014833820c442078bd368e46ec (patch)
treee8e4feb58a41b9e8722f9185210e49329aec657a /test/unit/lib/redmine/helpers
parenta7b9fa99966e8d59bd88548248ab11400ea48e5e (diff)
downloadredmine-1712ff07857b7a014833820c442078bd368e46ec.tar.gz
redmine-1712ff07857b7a014833820c442078bd368e46ec.zip
Starting or ending marker is not displayed if they are on the leftmost or rightmost boundary of the gantt (#33175).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19976 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib/redmine/helpers')
-rw-r--r--test/unit/lib/redmine/helpers/gantt_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/helpers/gantt_test.rb b/test/unit/lib/redmine/helpers/gantt_test.rb
index 770ae4719..e4e8cc6a9 100644
--- a/test/unit/lib/redmine/helpers/gantt_test.rb
+++ b/test/unit/lib/redmine/helpers/gantt_test.rb
@@ -450,6 +450,9 @@ class Redmine::Helpers::GanttHelperTest < Redmine::HelperTest
@output_buffer = @gantt.line(today - 7, today + 7, 30, true, 'line', :format => :html, :zoom => 4)
assert_select "div.starting", 1
assert_select 'div.starting[style*="left:28px"]', 1
+ # starting marker on the leftmost boundary of the gantt
+ @output_buffer = @gantt.line(gantt_start, today + 7, 30, true, 'line', :format => :html, :zoom => 4)
+ assert_select 'div.starting[style*="left:0px"]', 1
end
test "#line starting marker should not appear if the start date is before gantt start date" do
@@ -463,6 +466,9 @@ class Redmine::Helpers::GanttHelperTest < Redmine::HelperTest
@output_buffer = @gantt.line(today - 7, today + 7, 30, true, 'line', :format => :html, :zoom => 4)
assert_select "div.ending", 1
assert_select 'div.ending[style*="left:88px"]', 1
+ # ending marker on the rightmost boundary of the gantt
+ @output_buffer = @gantt.line(today - 7, gantt_end, 30, true, 'line', :format => :html, :zoom => 4)
+ assert_select 'div.ending[style*="left:116px"]', 1
end
test "#line ending marker should not appear if the end date is before gantt start date" do