summaryrefslogtreecommitdiff
path: root/testautomation/chart2/required/includes/ch2_format.inc
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2011-02-03 15:53:56 +0100
committerMathias Bauer <mba@openoffice.org>2011-02-03 15:53:56 +0100
commitcbd577ba3a737b0863156cfcfe46d45189ea95fa (patch)
tree6c3ebb15241142b38b74f6d544919832c5c16e33 /testautomation/chart2/required/includes/ch2_format.inc
parent10762f9d3c0345ab8015d395d827f387931e8c51 (diff)
parent06601d33f1b67b228b4dc3945ce0a52191effbbe (diff)
CWS gnumake3: resync to m99
Notes
Notes: split repo tag: testing_ooo/DEV300_m100
Diffstat (limited to 'testautomation/chart2/required/includes/ch2_format.inc')
-rw-r--r--testautomation/chart2/required/includes/ch2_format.inc37
1 files changed, 37 insertions, 0 deletions
diff --git a/testautomation/chart2/required/includes/ch2_format.inc b/testautomation/chart2/required/includes/ch2_format.inc
index 42048cbbb7de..27575ca4324f 100644
--- a/testautomation/chart2/required/includes/ch2_format.inc
+++ b/testautomation/chart2/required/includes/ch2_format.inc
@@ -47,6 +47,7 @@
' #1 tFormatAxisSecondaryXAxis
' #1 tFormatAxisSecondaryYAxis
' #1 tFormatAxisAllAxes
+' #1 tFormatDateAxis
'*
'\************************************************************************
@@ -1404,4 +1405,40 @@ testcase tFormatAxisAllAxes
endcase
+'
+'-------------------------------------------------------------
+'
+testcase tFormatDateAxis
+ printlog "Load simple chart document"
+ if fLoadVerySimpleChartAndSaveLocal() > 0 then
+ warnlog "Loading test document seems to have failed -> Check this out!"
+ goto endsub
+ endif
+ printlog " Select chart using navigator"
+ call fSelectFirstOLE
+ printlog "Edit / Object / Edit"
+ EditObjectEdit
+ sleep(1)
+ printlog "Invoke Format::Axis::X Axis"
+ FormatAxisXAxis
+ printlog "Goto tab page Scale"
+ Kontext
+ Active.SetPage TabChartAxisScale
+ Kontext "TabChartAxisScale"
+ printlog " Switch axis type to Date"
+ AxisType.Select (3)
+ printlog " Verify that the date controls are available"
+ if MinorIntervalUnit.exists then
+ call DialogTest ( TabChartAxisScale,2 )
+ else
+ warnlog "Datecontrols are not available"
+ end if
+ printlog " Close dialog"
+ TabChartAxisScale.Cancel
+ printlog "Close document"
+ Kontext "DocumentCalc"
+ DocumentCalc.TypeKeys "<Escape>"
+ Call hCloseDocument
+
+endcase