Kaydet (Commit) 1aa1fd12 authored tarafından Marc Neumann [msc]'s avatar Marc Neumann [msc]

automationooo330m5: #114064# testcases did not work under mac osx

üst 5bb4afeb
......@@ -32,22 +32,35 @@
'\***********************************************************************
sub db_Mozilla
' Information for this test under
' http://wiki.services.openoffice.org/wiki/Database_Automatic_Testing#Testing_the_mozilla_Address_book
if fCreateMozillaAddressbookDatasource(gOfficePath + ConvertPath("user/work/TT_Mozilla.odb")) then
tQueryAddressbook(gOfficePath + ConvertPath("user/work/TT_Mozilla.odb"))
tSortAddressbook(gOfficePath + ConvertPath("user/work/TT_Mozilla.odb"))
else
if(gPlatform = "osx") then
' on Mac platform the Mozilla address book is not available
' so I call only the testcases to satisfied the database
tQueryAddressbook("")
tSortAddressbook("")
else
' Information for this test under
' http://wiki.services.openoffice.org/wiki/Database_Automatic_Testing#Testing_the_mozilla_Address_book
if fCreateMozillaAddressbookDatasource(gOfficePath + ConvertPath("user/work/TT_Mozilla.odb")) then
tQueryAddressbook(gOfficePath + ConvertPath("user/work/TT_Mozilla.odb"))
tSortAddressbook(gOfficePath + ConvertPath("user/work/TT_Mozilla.odb"))
else
tQueryAddressbook("")
tSortAddressbook("")
endif
endif
end sub
'-------------------------------------------------------------------------
testcase tQueryAddressbook( sFileName )
if(gPlatform = "osx") then
printlog "mozilla address book not available on Mac"
goto endsub
endif
if ( not fOpenDatabase(sFileName) ) then
warnlog "Database can't be open"
printlog "May be you find a solution under http://wiki.services.openoffice.org/wiki/Database_Automatic_Testing#Testing_the_mozilla_Address_book"
......@@ -86,6 +99,11 @@ endcase
'-------------------------------------------------------------------------
testcase tSortAddressbook( sFileName )
if(gPlatform = "osx") then
printlog "mozilla address book not available on Mac"
goto endsub
endif
Dim sRecordCount as String
'/// open the database file created in the bas file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment