diff options
author | Go MAEDA <maeda@farend.jp> | 2020-08-15 23:03:13 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-08-15 23:03:13 +0000 |
commit | 837a6050118d3ab991da298e43495c734532b25e (patch) | |
tree | 751df55512e1ac62d47022f50a9239ff9abac8bf /test/unit | |
parent | 923deb7fa08aa5d1a42da1de7d826cef07a798c9 (diff) | |
download | redmine-837a6050118d3ab991da298e43495c734532b25e.tar.gz redmine-837a6050118d3ab991da298e43495c734532b25e.zip |
Merged r19976 from trunk to 4.1-stable (#33175).
git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@19980 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/lib/redmine/helpers/gantt_test.rb | 6 |
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 3b1f8f7fb..3370817e8 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 |