summaryrefslogtreecommitdiff
path: root/sfx2/qa
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-11-17 11:32:54 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-11-17 11:32:54 +0100
commit992300e341ba4764792fd38be280b4301d0d83e6 (patch)
tree879938555bea66a3730575749cb484da9322c05a /sfx2/qa
parent0ba9391098e7b69b3f53c1f724f8b395d285bf74 (diff)
undoapi: doVerb does not work, currently ... but leave it here, commented out, for the moment
Diffstat (limited to 'sfx2/qa')
-rwxr-xr-xsfx2/qa/complex/sfx2/undo/ChartDocumentTest.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/sfx2/qa/complex/sfx2/undo/ChartDocumentTest.java b/sfx2/qa/complex/sfx2/undo/ChartDocumentTest.java
index 1bb1be804cac..8dcabef8370e 100755
--- a/sfx2/qa/complex/sfx2/undo/ChartDocumentTest.java
+++ b/sfx2/qa/complex/sfx2/undo/ChartDocumentTest.java
@@ -113,7 +113,12 @@ public class ChartDocumentTest implements DocumentTest
canActivate = true;
assertTrue( "cannot activate OLE object", canActivate );
- // actually
+ // actually activate the object
+ //embeddedChart.doVerb( EmbedVerbs.MS_OLEVERB_SHOW );
+ // if we could use XEmbeddedObject.setVerb, then we would not need the "select" thingie above, and also
+ // the asynchronous dispatch below would not be necessary.
+ // Sadly, doVerb at the moment reliably deadlocks ... :(
+
m_textDocument.getCurrentView().dispatch( ".uno:ObjectMenue", new NamedValue[] { new NamedValue( "VerbID", EmbedVerbs.MS_OLEVERB_SHOW ) } );
// the dispatch happens asynchronously, so wait a little (at most 1 seconds) until the chart really has been activated