Commit 5c416b8
authored
Replace Internet Explorer with MSXML in
* refactor: Move `gc` and `time` imports to top level in `test_eventinterface.py`.
- Relocate `import gc` and `import time` to the top of the file.
- Removes redundant inline imports from `tearDown` and test methods.
* test: Replace `InternetExplorer` with `MSXML` in `test_eventinterface.py`.
- Replaces `InternetExplorer.Application` with `Msxml2.DOMDocument`.
- Introduces `IPropertyNotifySink` and `MSXMLDocumentSink` for testing.
- Updates test methods to verify default and non-default event interfaces
using `MSXML`.
* test: Add comments to `IPropertyNotifySink` methods in `test_eventinterface.py`.
- Document `OnChanged` and `OnRequestEdit` methods in `IPropertyNotifySink`
with descriptions from official documentation to improve code clarity.
* test: Document event sink methods in `test_eventinterface.py`.
- Add descriptive comments to `IPropertyNotifySink` and `MSXMLDocumentSink`
methods.
- Clarify whether methods originate from the default dispatch interface or
the `IPropertyNotifySink` interface.
* test: Add comment explaining `MSXML` usage in `test_eventinterface.py`.
- Clarify in `Test_MSXML.setUp` why `Msxml2.DOMDocument` is chosen as
the test object, highlighting its support for multiple connection points.
* test: Document `GetEvents` usage in `test_eventinterface.py`.
- Add comments to `Test_MSXML` methods explaining the behavior of `GetEvents`
when connecting to default vs. non-default source interfaces.
* test: Document resource cleanup in `test_eventinterface.py`.
- Add a comment explaining the use of `gc.collect()` and `time.sleep()`
in `Test_MSXML.tearDown` to ensure reliable COM resource release.
* test: Document message loop and event expectations in `test_eventinterface.py`.
- Clarify message loop processing during event wait.
- Document expected event arrivals for default vs. non-default interfaces.
* test: Revert the event sink name in `test_eventinterface.py`.test_eventinterface.py. (#933)1 parent 069b9d1 commit 5c416b8
1 file changed
Lines changed: 60 additions & 70 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | | - | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
13 | | - | |
14 | | - | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
20 | 33 | | |
21 | 34 | | |
22 | 35 | | |
23 | 36 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 41 | + | |
| 42 | + | |
36 | 43 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
62 | 71 | | |
63 | | - | |
64 | | - | |
65 | 72 | | |
66 | 73 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 79 | + | |
| 80 | + | |
78 | 81 | | |
79 | | - | |
| 82 | + | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
97 | 91 | | |
98 | 92 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 93 | | |
| 94 | + | |
| 95 | + | |
104 | 96 | | |
105 | | - | |
106 | | - | |
107 | 97 | | |
108 | | - | |
| 98 | + | |
109 | 99 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 100 | + | |
113 | 101 | | |
114 | | - | |
| 102 | + | |
| 103 | + | |
115 | 104 | | |
116 | 105 | | |
117 | | - | |
118 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
119 | 110 | | |
120 | | - | |
121 | | - | |
| 111 | + | |
122 | 112 | | |
123 | 113 | | |
124 | 114 | | |
| |||
0 commit comments