Apache OpenOffice (AOO) Bugzilla – Issue 92934
[Automation] File I/O functions need returnvalue
Last modified: 2013-08-07 15:07:30 UTC
Ensure that the file-I/O functions return a value so the test writer can react to special conditions.
CCing HDE
Started. Fixing the issue forces interface changes to all I/O functions.
The initial design of the functions was to - as far as possible - to replicate the functionality of the old functions including their shortcomings. So the functions were designed to not return anything useful (as did the old ones). However, hDateiOeffnen provided handling of the "Update links" dialog, which made it essentially different from the other functions that did not provide such functionality. hFileOpen currently replicates this behavior, this is to be removed. The functions now return the values as they come from hFileWait - negative numbers indicate presence of dialogs, positive numbers including 0 give the time it took to load the document if no dialogs are in the way.
Moving target, this cannot be done for 3.0 Funny enough i cannot set the target 3.1, so i set it to 3.x.
Fixed - let's give it a try
Set fixed
As discussed in the automation meeting we opted for the "small" solution, meaning that the functions only return TRUE if the document is completely loaded and FALSE if it is blocked by some dialog. Verified.
Close