diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-08-18 11:43:40 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-08-18 11:43:40 +0000 |
commit | be2b38bc9e85a8e3ee8d03dc9f51b2731bb683a7 (patch) | |
tree | 1930a20411f84fb532ac4e2000c9954d380addd0 /testautomation/writer/tools | |
parent | INTEGRATION: CWS autotestfixfha1 (1.1.12); FILE MERGED (diff) | |
download | core-be2b38bc9e85a8e3ee8d03dc9f51b2731bb683a7.tar.gz core-be2b38bc9e85a8e3ee8d03dc9f51b2731bb683a7.zip |
INTEGRATION: CWS autotestfixfha1 (1.1.12); FILE MERGED
2008/07/21 14:21:26 fredrikh 1.1.12.1: Updating to TestAutomation-format
Diffstat (limited to 'testautomation/writer/tools')
-rwxr-xr-x | testautomation/writer/tools/includes/w_tool4.inc | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/testautomation/writer/tools/includes/w_tool4.inc b/testautomation/writer/tools/includes/w_tool4.inc index aded6328a37d..044ddde40f8b 100755 --- a/testautomation/writer/tools/includes/w_tool4.inc +++ b/testautomation/writer/tools/includes/w_tool4.inc @@ -7,9 +7,9 @@ '* '* $RCSfile: w_tool4.inc,v $ '* -'* $Revision: 1.1 $ +'* $Revision: 1.2 $ '* -'* last change: $Author: fredrikh $ $Date: 2008-06-18 08:36:09 $ +'* last change: $Author: vg $ $Date: 2008-08-18 12:43:40 $ '* '* This file is part of OpenOffice.org. '* @@ -64,7 +64,7 @@ function CountItemsInNavigatorGroup(Group as integer) as Integer Auswahlliste.Select j Auswahlliste.TypeKeys "-" next j - endif + end if Wait 500 'Select group given by the function @@ -94,10 +94,10 @@ function wCheckOutline(WhatToFind as string) as boolean EditCopy if GetClipboardText = WhatToFind then wCheckOutline = True - endif + end if else wCheckOutline = True - endif + end if end function '******************************************************************* @@ -119,37 +119,34 @@ end function function wGetSpellcheckDocumentName(xCategory as integer) as string Dim sTemp as string, sReturn as string '/// This function is to return the document to load in spellcheck test - Dim sLocale(3) as string - '/// Checking if dictionary-files exists /// - sLocale(3) = fgetDocumentLanguages(sLocale(), true) - +' select case xCategory case 1: - select case sLocale(1) + select case iSprache case 81, 82, 86, 88 sReturn = "None" case 1 - sTemp = Convertpath(gTesttoolpath + "writer\level1\input\spellcheck\st1_2_01.odt") + sTemp = Convertpath(gTesttoolpath + "writer\optional\input\spellcheck\st1_2_01.odt") case 3 - sTemp = Convertpath(gTesttoolpath + "writer\level1\input\spellcheck\st1_2_03.odt") + sTemp = Convertpath(gTesttoolpath + "writer\optional\input\spellcheck\st1_2_03.odt") case 7 - sTemp = Convertpath(gTesttoolpath + "writer\level1\input\spellcheck\st1_2_07.odt") + sTemp = Convertpath(gTesttoolpath + "writer\optional\input\spellcheck\st1_2_07.odt") case else - sTemp = Convertpath(gTesttoolpath + "writer\level1\input\spellcheck\st1_2_" & sLocale(1) & ".odt") + sTemp = Convertpath(gTesttoolpath + "writer\optional\input\spellcheck\st1_2_" & iSprache & ".odt") end select case 2: - select case sLocale(1) + select case iSprache case 81, 82, 86, 88 sReturn = "None" case 1 - sTemp = Convertpath(gTesttoolpath + "writer\level1\input\linguistik\001.odt") + sTemp = Convertpath(gTesttoolpath + "writer\optional\input\linguistik\001.odt") case 3 - sTemp = Convertpath(gTesttoolpath + "writer\level1\input\linguistik\003.odt") + sTemp = Convertpath(gTesttoolpath + "writer\optional\input\linguistik\003.odt") case 7 - sTemp = Convertpath(gTesttoolpath + "writer\level1\input\linguistik\007.odt") + sTemp = Convertpath(gTesttoolpath + "writer\optional\input\linguistik\007.odt") case else - sTemp = Convertpath(gTesttoolpath + "writer\level1\input\linguistik\0" & sLocale(1) & ".odt") + sTemp = Convertpath(gTesttoolpath + "writer\optional\input\linguistik\0" & iSprache & ".odt") end select end select @@ -158,8 +155,8 @@ function wGetSpellcheckDocumentName(xCategory as integer) as string sReturn = sTemp else sReturn = "Empty" - endif - endif + end if + end if wGetSpellcheckDocumentName = sReturn |