#BUGFIX
authorClaus Gittinger <cg@exept.de>
Wed, 30 Mar 2016 03:44:41 +0200
changeset 1380 6b362a19ffd2
parent 1379 b287b40bb60f
child 1381 7fae9f959864
#BUGFIX class: RegressionTests::Win32OLETests changed: #test03_CreateInstance
RegressionTests__Win32OLETests.st
--- a/RegressionTests__Win32OLETests.st	Wed Mar 30 03:35:02 2016 +0200
+++ b/RegressionTests__Win32OLETests.st	Wed Mar 30 03:44:41 2016 +0200
@@ -107,7 +107,8 @@
 !
 
 test03_CreateInstance
-    |guid iDispatch iWebBrowser iWebBrowserApp iWebBrowser2|
+    |guid iDispatch iWebBrowser iWebBrowserApp iWebBrowser2
+     ids visibleID params result|
 
     guid := (GUID clsidFromProgID:'InternetExplorer.Application'). 
     self assert:(guid notNil).
@@ -133,8 +134,14 @@
     self assert:(iWebBrowser2 notNil).
     iWebBrowserApp release.
 
+    "/ iWebBrowser2 setProperty:'Visible' value:true.
 self halt.
-    iWebBrowser2 setProperty:'Visible' value:true.
+    ids := iWebBrowser2 getIDsOfNames:(Array with:'Visible').
+    visibleID := ids first.
+
+    params := OLE_DISPPARAMS new.
+    params cArgs: 0.
+    result := iDispatch invokePropertyGet: visibleID with:params.
 self halt.
 
     iWebBrowser2 release.
@@ -145,7 +152,7 @@
     "
 
     "Created: / 30-03-2016 / 02:29:19 / cg"
-    "Modified: / 30-03-2016 / 03:33:51 / cg"
+    "Modified: / 30-03-2016 / 03:43:46 / cg"
 ! !
 
 !Win32OLETests class methodsFor:'documentation'!