Kaydet (Commit) c95db1dc authored tarafından Frank Schoenheit [fs]'s avatar Frank Schoenheit [fs]
...@@ -78,7 +78,7 @@ public class Summarizer ...@@ -78,7 +78,7 @@ public class Summarizer
{ {
if (states.elementAt(j).equals("not part of the job")) if (states.elementAt(j).equals("not part of the job"))
{ {
state = "Not possible since not all Interfaces/Services have been checked"; state = "PASSED(some interfaces/services not tested).OK";
} }
else else
{ {
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
package mod._forms; package mod._forms;
import com.sun.star.beans.NamedValue; import com.sun.star.beans.NamedValue;
import com.sun.star.beans.PropertyValue; import com.sun.star.beans.PropertyValue;
import com.sun.star.container.XIndexAccess;
import java.io.PrintWriter; import java.io.PrintWriter;
import lib.StatusException; import lib.StatusException;
...@@ -251,11 +252,10 @@ public class GenericModelTest extends TestCase { ...@@ -251,11 +252,10 @@ public class GenericModelTest extends TestCase {
if (m_ConnectionColsed) return; if (m_ConnectionColsed) return;
try { try {
XIndexAccess forms = UnoRuntime.queryInterface( XIndexAccess.class,
FormTools.getForms( WriterTools.getDrawPage( m_xTextDoc ) ) );
XForm myForm = (XForm) AnyConverter.toObject(new Type(XForm.class), XForm myForm = (XForm) AnyConverter.toObject(new Type(XForm.class),
(FormTools.getForms( forms.getByIndex(0));
WriterTools.getDrawPage(
m_xTextDoc)))
.getByName("Standard"));
if (debug){ if (debug){
if (myForm == null){ if (myForm == null){
...@@ -269,18 +269,20 @@ public class GenericModelTest extends TestCase { ...@@ -269,18 +269,20 @@ public class GenericModelTest extends TestCase {
} }
XPropertySet xSetProp = (XPropertySet) UnoRuntime.queryInterface( XPropertySet xSetProp = UnoRuntime.queryInterface( XPropertySet.class, myForm );
XPropertySet.class, myForm); XConnection connection = UnoRuntime.queryInterface( XConnection.class, xSetProp.getPropertyValue( "ActiveConnection" ) );
XConnection connection = (XConnection) AnyConverter.toObject( if ( connection == null )
new Type(XConnection.class), {
xSetProp.getPropertyValue("ActiveConnection")); if ( debug )
if (debug && connection == null){ log.println("ERROR: could not get property 'ActiveConnection' from the XForm");
log.println("ERROR: could not get property 'ActiveConnection' from the XForm"); }
else
{
connection.close();
} }
connection.close();
} catch (Exception e) { } catch (Exception e) {
log.println("ERROR: Can't close the connection: " + e.toString()); log.println("ERROR: Can't close the connection: " + e.toString());
e.printStackTrace( log );
} }
log.println("closing data source..."); log.println("closing data source...");
......
...@@ -217,14 +217,14 @@ testcase tiViewToolbar_1 ...@@ -217,14 +217,14 @@ testcase tiViewToolbar_1
printlog "open application " printlog "open application "
Call hNewDocument Call hNewDocument
printlog "use the empty layout"
Call sSelectEmptyLayout Call sSelectEmptyLayout
printlog "delete default content" printlog "delete default content"
hUseAsyncSlot( "EditSelectAll" ) hUseAsyncSlot( "EditSelectAll" )
Kontext "DocumentImpress" Kontext "DocumentImpress"
DocumentImpress.typeKeys("<DELETE>",true) DocumentImpress.typeKeys("<DELETE>",true)
printlog "use the empty layout"
call sSelectEmptyLayout
printlog "Insert->Graphic... : global\input\graf_inp\desp.bmp " printlog "Insert->Graphic... : global\input\graf_inp\desp.bmp "
hUseAsyncSlot( "InsertGraphicsFromFile" ) hUseAsyncSlot( "InsertGraphicsFromFile" )
......
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