summaryrefslogtreecommitdiffstats
path: root/testautomation/writer/tools
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-09-04 08:21:57 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-09-04 08:21:57 +0000
commit43cb661a13c0f5ae6b117691a8dc631798735205 (patch)
tree710200bd0662059c5941986f8e994c97c0860a26 /testautomation/writer/tools
parentINTEGRATION: CWS greenstate30ver3_DEV300 (1.1.32.1.10); FILE MERGED (diff)
downloadcore-43cb661a13c0f5ae6b117691a8dc631798735205.tar.gz
core-43cb661a13c0f5ae6b117691a8dc631798735205.zip
INTEGRATION: CWS greenstate30ver3_DEV300 (1.1.32.1.10); FILE MERGED
2008/09/03 12:06:37 fredrikh 1.1.32.1.10.1: i93374
Diffstat (limited to 'testautomation/writer/tools')
-rw-r--r--testautomation/writer/tools/includes/w_tools_undo.inc34
1 files changed, 22 insertions, 12 deletions
diff --git a/testautomation/writer/tools/includes/w_tools_undo.inc b/testautomation/writer/tools/includes/w_tools_undo.inc
index 2c8d9acf2056..98bcbda981ab 100644
--- a/testautomation/writer/tools/includes/w_tools_undo.inc
+++ b/testautomation/writer/tools/includes/w_tools_undo.inc
@@ -8,9 +8,9 @@
'*
'* $RCSfile: w_tools_undo.inc,v $
'*
-'* $Revision: 1.2 $
+'* $Revision: 1.3 $
'*
-'* last change: $Author: vg $ $Date: 2008-08-18 12:44:47 $
+'* last change: $Author: rt $ $Date: 2008-09-04 09:21:57 $
'*
'* This file is part of OpenOffice.org.
'*
@@ -84,7 +84,7 @@ sub CheckUndoStringInUndoList(vType as integer, optional vShould as string)
' Delete
case 4:
Select Case iSprache
- Case 01: if UndoStringFromUndoList <> "Delete ' ###'" then Warnlog "Wrong text in Undo-List: " & UndoStringFromUndoList
+ Case 01: if UndoStringFromUndoList <> "Delete multiple selection" then Warnlog "Wrong text in Undo-List: " & UndoStringFromUndoList
Case else: QAErrorlog "Please adapt tests for current language! (" & CurrentUndoString(0) & ")"
end select
' Replace all
@@ -142,7 +142,12 @@ sub CheckUndoStringInUndoList(vType as integer, optional vShould as string)
Case "Reject"
Select Case iSprache
- Case 01: if UndoStringFromUndoList <> "Reject change: Insert 'This is a test'" then Warnlog "Wrong text in Undo-List: " & UndoStringFromUndoList
+ Case 01: if UndoStringFromUndoList <> "Reject change: Insert 'This is a test'" then
+ elseif UndoStringFromUndoList = "Reject change: $1" then
+ QaErrorlog "#i# - Bug with "
+ else
+ Warnlog "Wrong text in Undo-List: " & UndoStringFromUndoList
+ end if
Case else: QAErrorlog "Please adapt test for this language: " & UndoStringFromUndoList
end select
@@ -232,7 +237,7 @@ sub CheckUndoStringInUndoList(vType as integer, optional vShould as string)
Case "PromoteOutline"
Select Case iSprache
- Case 01: if UndoStringFromUndoList <> "Promote outline" then Warnlog "Wrong text in Undo-List: " & UndoStringFromUndoList
+ Case 01: if UndoStringFromUndoList <> "Promote/demote outline" then Warnlog "Wrong text in Undo-List: " & UndoStringFromUndoList
Case else: QAErrorlog "Please adapt test for this language: " & UndoStringFromUndoList
end select
@@ -468,7 +473,7 @@ sub CheckUndoStringInUndoList(vType as integer, optional vShould as string)
Case "InsertGraphic"
Select Case iSprache
- Case 01: if UndoStringFromUndoList <> "Insert pictures" then QAErrorlog "#i42852#Wrong text in Undo-List: " & UndoStringFromUndoList
+ Case 01: if UndoStringFromUndoList <> "Insert graphics" then QAErrorlog "#i42852#Wrong text in Undo-List: " & UndoStringFromUndoList
Case else: QAErrorlog "Please adapt test for this language: " & UndoStringFromUndoList
end select
@@ -510,7 +515,7 @@ sub CheckUndoStringInUndoList(vType as integer, optional vShould as string)
Case "InsertDocument"
Select Case iSprache
- Case 01: if UndoStringFromUndoList <> "Insert Document" then QAErrorlog "#i42852#Wrong text in Undo-List: " & UndoStringFromUndoList
+ Case 01: if UndoStringFromUndoList <> "Insert file" then QAErrorlog "#i42852#Wrong text in Undo-List: " & UndoStringFromUndoList
Case else: QAErrorlog "Please adapt test for this language: " & UndoStringFromUndoList
end select
@@ -532,9 +537,14 @@ sub CheckUndoStringInUndoList(vType as integer, optional vShould as string)
Case else: QAErrorlog "Please adapt test for this language: " & UndoStringFromUndoList
end select
- Case "FreeForm"
- Select Case iSprache
- Case 01: if UndoStringFromUndoList <> "Insert Polyline with 3 corners" then Warnlog "Wrong text in Undo-List: " & UndoStringFromUndoList
+ Case "FreeForm"
+ Select Case iSprache
+ Case 01: if UndoStringFromUndoList <> "Insert Polyline with 3 corners" then
+ elseif UndoStringFromUndoList = "Insert Polyline with %2 corners" then
+ QaErrorlog "#i# - Bug with "
+ else
+ Warnlog "Wrong text in Undo-List: " & UndoStringFromUndoList
+ end if
Case else: QAErrorlog "Please adapt test for this language: " & UndoStringFromUndoList
end select
@@ -546,7 +556,7 @@ sub CheckUndoStringInUndoList(vType as integer, optional vShould as string)
Case "DrawUnGroup"
Select Case iSprache
- Case 01: if UndoStringFromUndoList <> "Ungroup group object 'MyGroup'" then QAErrorlog "#i42852#Wrong text in Undo-List: " & UndoStringFromUndoList
+ Case 01: if UndoStringFromUndoList <> "Ungroup drawing objects" then QAErrorlog "#i42852#Wrong text in Undo-List: " & UndoStringFromUndoList
Case else: QAErrorlog "Please adapt test for this language: " & UndoStringFromUndoList
end select
@@ -643,5 +653,5 @@ sub CheckUndoStringInUndoList(vType as integer, optional vShould as string)
wait 500
Kontext "StandardBar"
Undo.Click
-
+ Call wTypeKeys "<ESCAPE>"
end sub