302
|
1 |
"{ Package: 'exept:regression' }"
|
|
2 |
|
|
3 |
"{ NameSpace: RegressionTests }"
|
|
4 |
|
|
5 |
TestCase subclass:#OS_OLE_Tests
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'OS-Testing'
|
|
10 |
!
|
|
11 |
|
|
12 |
!OS_OLE_Tests class methodsFor:'documentation'!
|
|
13 |
|
|
14 |
documentation
|
|
15 |
"
|
|
16 |
documentation to be added.
|
|
17 |
|
|
18 |
[author:]
|
|
19 |
cg (cg@FUSI)
|
|
20 |
|
|
21 |
[instance variables:]
|
|
22 |
|
|
23 |
[class variables:]
|
|
24 |
|
|
25 |
[see also:]
|
|
26 |
|
|
27 |
"
|
|
28 |
!
|
|
29 |
|
|
30 |
history
|
|
31 |
"Created: / 06-02-2006 / 16:53:36 / cg"
|
|
32 |
! !
|
|
33 |
|
|
34 |
!OS_OLE_Tests methodsFor:'tests'!
|
|
35 |
|
|
36 |
test1
|
|
37 |
"This is a demonstration testCase - it is meant to be removed eventually.
|
|
38 |
This testCase will PASS.
|
|
39 |
Double click on the TestCase class or open a TestRunner to see me checking...
|
|
40 |
- please add more methods like this..."
|
|
41 |
|
|
42 |
|handle|
|
|
43 |
|
304
|
44 |
handle := Win32OperatingSystem::Win32TypeLibraryHandle
|
|
45 |
loadTypeLib:'C:\WINDOWS\system32\stdole32.tlb'.
|
|
46 |
self assert: ( handle notNil ).
|
|
47 |
handle close.
|
|
48 |
|
|
49 |
handle := Win32OperatingSystem::Win32TypeLibraryHandle
|
|
50 |
loadTypeLib:'c:\WINDOWS\system32\Macromed\Flash\swflash.ocx'.
|
302
|
51 |
self assert: ( handle notNil ).
|
|
52 |
handle close.
|
|
53 |
|
|
54 |
"
|
|
55 |
self run:#test1
|
|
56 |
self new test1
|
|
57 |
"
|
|
58 |
! !
|
|
59 |
|
|
60 |
!OS_OLE_Tests class methodsFor:'documentation'!
|
|
61 |
|
|
62 |
version
|
|
63 |
^ '$Header$'
|
|
64 |
! !
|