From a09c75aca6bfcc8ff02a3e46ddba3d1a13b7949d Mon Sep 17 00:00:00 2001 From: "Joerg Skottke [jsk]" Date: Mon, 13 Sep 2010 09:49:22 +0200 Subject: [PATCH] automationdev300m87: #i112208# - Eliminate sMakeReadonlyDocumentEditable() calls in module chart2 --- .../includes/ch2_flexible_source_range_selection01.inc | 4 +--- testautomation/chart2/tools/ch_tools_common.inc | 8 ++------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/testautomation/chart2/optional/includes/ch2_flexible_source_range_selection01.inc b/testautomation/chart2/optional/includes/ch2_flexible_source_range_selection01.inc index ec2496ecb1f3..071e9146ef78 100644 --- a/testautomation/chart2/optional/includes/ch2_flexible_source_range_selection01.inc +++ b/testautomation/chart2/optional/includes/ch2_flexible_source_range_selection01.inc @@ -782,9 +782,7 @@ endcase ' function fOpenWriterTestDocumentAndInsertChart(sInputFile as STRING) as BOOLEAN fOpenWriterTestDocumentAndInsertChart = FALSE - call hFileOpen(sInputFile) - sleep(2) - Call sMakeReadOnlyDocumentEditable() + hFileOpenLocally(sInputFile) '///Menu Insert Object Chart to open chart wizard printlog "Menu Insert Object Chart to open chart wizard" InsertObjectChart diff --git a/testautomation/chart2/tools/ch_tools_common.inc b/testautomation/chart2/tools/ch_tools_common.inc index f6d722fa2a25..ad9f2108f024 100644 --- a/testautomation/chart2/tools/ch_tools_common.inc +++ b/testautomation/chart2/tools/ch_tools_common.inc @@ -162,9 +162,7 @@ end function ' function fOpenTestDocumentAndSelectDataRange(sInputFile as string) as BOOLEAN fOpenTestDocumentAndSelectDataRange = FALSE - call hFileOpen(sInputFile) - sleep(2) - Call sMakeReadOnlyDocumentEditable() + hFileOpenLocally(sInputFile) '/// Select chart using navigator printlog "Select chart using navigator" call fSelectFirstOLE @@ -191,9 +189,7 @@ end function ' function fOpenTestDocumentAndInsertChart(sInputFile as string) as BOOLEAN fOpenTestDocumentAndInsertChart = FALSE - call hFileOpen(sInputFile) - sleep(2) - Call sMakeReadOnlyDocumentEditable() + hFileOpenLocally(sInputFile) Kontext "DocumentCalc" printlog "Type " DocumentCalc.TypeKeys ""