author | Patrik Svestka <patrik.svestka@gmail.com> |
Wed, 03 Jun 2020 14:16:30 +0200 | |
branch | jv |
changeset 2592 | 7aa9af5b0ddb |
parent 2214 | ba58ef8a6214 |
child 2593 | 773015856b61 |
permissions | -rwxr-xr-x |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1 |
"{ Encoding: utf8 }" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2 |
|
1974 | 3 |
" |
4 |
COPYRIGHT (c) Claus Gittinger / eXept Software AG |
|
5 |
COPYRIGHT (c) 2016 Jan Vrany |
|
6 |
All Rights Reserved |
|
7 |
||
8 |
This software is furnished under a license and may be used |
|
9 |
only in accordance with the terms of that license and with the |
|
10 |
inclusion of the above copyright notice. This software may not |
|
11 |
be provided or otherwise made available to, or used by, any |
|
12 |
other person. No title to or ownership of the software is |
|
13 |
hereby transferred. |
|
14 |
" |
|
1447 | 15 |
"{ Package: 'stx:goodies/regression' }" |
344 | 16 |
|
17 |
"{ NameSpace: RegressionTests }" |
|
18 |
||
19 |
TestCase subclass:#Win32OperatingSystemTest |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
20 |
instanceVariableNames:'registryPath windowsDetailsRegistryPath' |
675 | 21 |
classVariableNames:'' |
22 |
poolDictionaries:'' |
|
1161 | 23 |
category:'tests-Regression-RuntimeSystem' |
344 | 24 |
! |
25 |
||
1974 | 26 |
!Win32OperatingSystemTest class methodsFor:'documentation'! |
27 |
||
28 |
copyright |
|
29 |
" |
|
30 |
COPYRIGHT (c) Claus Gittinger / eXept Software AG |
|
31 |
COPYRIGHT (c) 2016 Jan Vrany |
|
32 |
All Rights Reserved |
|
33 |
||
34 |
This software is furnished under a license and may be used |
|
35 |
only in accordance with the terms of that license and with the |
|
36 |
inclusion of the above copyright notice. This software may not |
|
37 |
be provided or otherwise made available to, or used by, any |
|
38 |
other person. No title to or ownership of the software is |
|
39 |
hereby transferred. |
|
40 |
" |
|
41 |
! ! |
|
344 | 42 |
|
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
43 |
!Win32OperatingSystemTest methodsFor:'file templates'! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
44 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
45 |
unicodeRegistryExample |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
46 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
47 |
^ 'Windows Registry Editor Version 5.00 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
48 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
49 |
[HKEY_CURRENT_USER\Software\SmalltalkX-tests] |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
50 |
@="しか OMG" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
51 |
"emptyToTest"="" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
52 |
"testEmptyMultiSZ"=hex(7):00,00 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
53 |
"bledesu"="''Testing Unicode chars ř ž č ルすしかき''). " |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
54 |
"しかき "="Testus gradus" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
55 |
" ř ž č ル. "="Testing Unicode chars ř ž č ルすしかき" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
56 |
"zero"=hex: |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
57 |
"non-zero"=hex:11,10 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
58 |
"す "=hex:10 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
59 |
"dword_value"=dword:000023af |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
60 |
"11"="A number name" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
61 |
"き"=dword:234234af |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
62 |
"qwordvalue"=hex(b):ad,61,28,a3,95,0e,74,79 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
63 |
"qword_max"=hex(b):ff,ff,ff,ff,ff,ff,ff,ff |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
64 |
"すし"=hex(b):ef,ad,00,00,00,00,00,00 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
65 |
"Font_Leelawadee UI Bold"=hex(7):53,00,45,00,47,00,4f,00,45,00,55,00,49,00,42,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
66 |
00,2e,00,54,00,54,00,46,00,2c,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
67 |
49,00,20,00,42,00,6f,00,6c,00,64,00,2c,00,31,00,31,00,30,00,2c,00,38,00,32,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
68 |
00,00,00,53,00,45,00,47,00,4f,00,45,00,55,00,49,00,42,00,2e,00,54,00,54,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
69 |
46,00,2c,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,20,00,42,00,6f,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
70 |
00,6c,00,64,00,00,00,4d,00,45,00,49,00,52,00,59,00,4f,00,42,00,2e,00,54,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
71 |
54,00,43,00,2c,00,4d,00,65,00,69,00,72,00,79,00,6f,00,20,00,55,00,49,00,20,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
72 |
00,42,00,6f,00,6c,00,64,00,2c,00,31,00,32,00,30,00,2c,00,39,00,36,00,00,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
73 |
4d,00,45,00,49,00,52,00,59,00,4f,00,42,00,2e,00,54,00,54,00,43,00,2c,00,4d,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
74 |
00,65,00,69,00,72,00,79,00,6f,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
75 |
64,00,00,00,4d,00,53,00,4a,00,48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
76 |
00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,4a,00,68,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
77 |
65,00,6e,00,67,00,48,00,65,00,69,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
78 |
00,64,00,2c,00,31,00,32,00,30,00,2c,00,39,00,36,00,00,00,4d,00,53,00,4a,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
79 |
48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,63,00,72,00,6f,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
80 |
00,73,00,6f,00,66,00,74,00,20,00,4a,00,68,00,65,00,6e,00,67,00,48,00,65,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
81 |
69,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,4d,00,53,00,59,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
82 |
00,48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,63,00,72,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
83 |
6f,00,73,00,6f,00,66,00,74,00,20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
84 |
00,49,00,20,00,42,00,6f,00,6c,00,64,00,2c,00,31,00,32,00,38,00,2c,00,39,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
85 |
36,00,00,00,4d,00,53,00,59,00,48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
86 |
00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,59,00,61,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
87 |
48,00,65,00,69,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,4d,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
88 |
00,41,00,4c,00,47,00,55,00,4e,00,42,00,44,00,2e,00,54,00,54,00,46,00,2c,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
89 |
4d,00,61,00,6c,00,67,00,75,00,6e,00,20,00,47,00,6f,00,74,00,68,00,69,00,63,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
90 |
00,20,00,42,00,6f,00,6c,00,64,00,2c,00,31,00,31,00,38,00,2c,00,39,00,36,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
91 |
00,00,4d,00,41,00,4c,00,47,00,55,00,4e,00,42,00,44,00,2e,00,54,00,54,00,46,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
92 |
00,2c,00,4d,00,61,00,6c,00,67,00,75,00,6e,00,20,00,47,00,6f,00,74,00,68,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
93 |
69,00,63,00,20,00,42,00,6f,00,6c,00,64,00,00,00,59,00,55,00,47,00,4f,00,54,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
94 |
00,48,00,42,00,2e,00,54,00,54,00,43,00,2c,00,59,00,75,00,20,00,47,00,6f,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
95 |
74,00,68,00,69,00,63,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,2c,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
96 |
00,31,00,32,00,38,00,2c,00,39,00,36,00,00,00,59,00,55,00,47,00,4f,00,54,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
97 |
48,00,42,00,2e,00,54,00,54,00,43,00,2c,00,59,00,75,00,20,00,47,00,6f,00,74,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
98 |
00,68,00,69,00,63,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
99 |
53,00,45,00,47,00,55,00,49,00,53,00,59,00,4d,00,2e,00,54,00,54,00,46,00,2c,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
100 |
00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,20,00,53,00,79,00,6d,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
101 |
62,00,6f,00,6c,00,00,00,00,00 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
102 |
"ř ž č ルすしか"=hex(7):27,00,54,00,65,00,73,00,74,00,69,00,6e,00,67,00,20,00,55,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
103 |
00,6e,00,69,00,63,00,6f,00,64,00,65,00,20,00,63,00,68,00,61,00,72,00,73,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
104 |
20,00,59,01,20,00,7e,01,20,00,0d,01,20,00,eb,30,59,30,57,30,4b,30,4d,30,27,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
105 |
00,29,00,00,00,53,00,45,00,47,00,4f,00,45,00,55,00,49,00,42,00,2e,00,54,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
106 |
54,00,46,00,2c,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,20,00,42,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
107 |
00,6f,00,6c,00,64,00,2c,00,31,00,31,00,30,00,2c,00,38,00,32,00,00,00,53,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
108 |
45,00,47,00,4f,00,45,00,55,00,49,00,42,00,2e,00,54,00,54,00,46,00,2c,00,53,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
109 |
00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
110 |
00,00,4d,00,45,00,49,00,52,00,59,00,4f,00,42,00,2e,00,54,00,54,00,43,00,2c,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
111 |
00,4d,00,65,00,69,00,72,00,79,00,6f,00,20,00,55,00,49,00,20,00,42,00,6f,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
112 |
6c,00,64,00,2c,00,31,00,32,00,30,00,2c,00,39,00,36,00,00,00,4d,00,45,00,49,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
113 |
00,52,00,59,00,4f,00,42,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,65,00,69,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
114 |
72,00,79,00,6f,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,4d,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
115 |
00,53,00,4a,00,48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
116 |
63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,4a,00,68,00,65,00,6e,00,67,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
117 |
00,48,00,65,00,69,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,2c,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
118 |
31,00,32,00,30,00,2c,00,39,00,36,00,00,00,4d,00,53,00,4a,00,48,00,42,00,44,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
119 |
00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
120 |
66,00,74,00,20,00,4a,00,68,00,65,00,6e,00,67,00,48,00,65,00,69,00,20,00,55,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
121 |
00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,4d,00,53,00,59,00,48,00,42,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
122 |
44,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
123 |
00,66,00,74,00,20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,00,49,00,20,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
124 |
42,00,6f,00,6c,00,64,00,2c,00,31,00,32,00,38,00,2c,00,39,00,36,00,00,00,4d,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
125 |
00,53,00,59,00,48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
126 |
63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,59,00,61,00,48,00,65,00,69,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
127 |
00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,4d,00,41,00,4c,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
128 |
47,00,55,00,4e,00,42,00,44,00,2e,00,54,00,54,00,46,00,2c,00,4d,00,61,00,6c,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
129 |
00,67,00,75,00,6e,00,20,00,47,00,6f,00,74,00,68,00,69,00,63,00,20,00,42,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
130 |
6f,00,6c,00,64,00,2c,00,31,00,31,00,38,00,2c,00,39,00,36,00,00,00,4d,00,41,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
131 |
00,4c,00,47,00,55,00,4e,00,42,00,44,00,2e,00,54,00,54,00,46,00,2c,00,4d,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
132 |
61,00,6c,00,67,00,75,00,6e,00,20,00,47,00,6f,00,74,00,68,00,69,00,63,00,20,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
133 |
00,42,00,6f,00,6c,00,64,00,00,00,59,00,55,00,47,00,4f,00,54,00,48,00,42,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
134 |
2e,00,54,00,54,00,43,00,2c,00,59,00,75,00,20,00,47,00,6f,00,74,00,68,00,69,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
135 |
00,63,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,2c,00,31,00,32,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
136 |
38,00,2c,00,39,00,36,00,00,00,59,00,55,00,47,00,4f,00,54,00,48,00,42,00,2e,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
137 |
00,54,00,54,00,43,00,2c,00,59,00,75,00,20,00,47,00,6f,00,74,00,68,00,69,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
138 |
63,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,53,00,45,00,47,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
139 |
00,55,00,49,00,53,00,59,00,4d,00,2e,00,54,00,54,00,46,00,2c,00,53,00,65,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
140 |
67,00,6f,00,65,00,20,00,55,00,49,00,20,00,53,00,79,00,6d,00,62,00,6f,00,6c,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
141 |
00,00,00,00,00 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
142 |
"Ugh"=hex(2):27,00,54,00,65,00,73,00,74,00,69,00,6e,00,67,00,20,00,55,00,6e,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
143 |
69,00,63,00,6f,00,64,00,65,00,20,00,63,00,68,00,61,00,72,00,73,00,20,00,59,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
144 |
01,20,00,7e,01,20,00,0d,01,20,00,eb,30,59,30,57,30,4b,30,4d,30,27,00,29,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
145 |
2e,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,00,00 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
146 |
" č ルすしか"=hex(2):27,00,54,00,65,00,73,00,74,00,69,00,6e,00,67,00,20,00,55,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
147 |
6e,00,69,00,63,00,6f,00,64,00,65,00,20,00,63,00,68,00,61,00,72,00,73,00,20,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
148 |
00,59,01,20,00,7e,01,20,00,0d,01,20,00,eb,30,59,30,57,30,4b,30,4d,30,27,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
149 |
29,00,2e,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
150 |
00 |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
151 |
[HKEY_CURRENT_USER\Software\SmalltalkX-tests\ ルすしか_empty] |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
152 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
153 |
[HKEY_CURRENT_USER\Software\SmalltalkX-tests\ ルすしか] |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
154 |
"bledesu"="''Testing Unicode chars ř ž č ルすしかき''). " |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
155 |
"しかき "="Testus gradus" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
156 |
" ř ž č ル. "="Testing Unicode chars ř ž č ルすしかき" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
157 |
"zero"=hex: |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
158 |
"non-zero"=hex:11,10 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
159 |
"す "=hex:10 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
160 |
"dword_value"=dword:000023af |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
161 |
"き"=dword:234234af |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
162 |
"qwordvalue"=hex(b):ad,61,28,a3,95,0e,74,79 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
163 |
"qword_max"=hex(b):ff,ff,ff,ff,ff,ff,ff,ff |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
164 |
"すし"=hex(b):ef,ad,00,00,00,00,00,00 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
165 |
"Font_Leelawadee UI Bold"=hex(7):53,00,45,00,47,00,4f,00,45,00,55,00,49,00,42,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
166 |
00,2e,00,54,00,54,00,46,00,2c,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
167 |
49,00,20,00,42,00,6f,00,6c,00,64,00,2c,00,31,00,31,00,30,00,2c,00,38,00,32,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
168 |
00,00,00,53,00,45,00,47,00,4f,00,45,00,55,00,49,00,42,00,2e,00,54,00,54,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
169 |
46,00,2c,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,20,00,42,00,6f,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
170 |
00,6c,00,64,00,00,00,4d,00,45,00,49,00,52,00,59,00,4f,00,42,00,2e,00,54,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
171 |
54,00,43,00,2c,00,4d,00,65,00,69,00,72,00,79,00,6f,00,20,00,55,00,49,00,20,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
172 |
00,42,00,6f,00,6c,00,64,00,2c,00,31,00,32,00,30,00,2c,00,39,00,36,00,00,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
173 |
4d,00,45,00,49,00,52,00,59,00,4f,00,42,00,2e,00,54,00,54,00,43,00,2c,00,4d,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
174 |
00,65,00,69,00,72,00,79,00,6f,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
175 |
64,00,00,00,4d,00,53,00,4a,00,48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
176 |
00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,4a,00,68,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
177 |
65,00,6e,00,67,00,48,00,65,00,69,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
178 |
00,64,00,2c,00,31,00,32,00,30,00,2c,00,39,00,36,00,00,00,4d,00,53,00,4a,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
179 |
48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,63,00,72,00,6f,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
180 |
00,73,00,6f,00,66,00,74,00,20,00,4a,00,68,00,65,00,6e,00,67,00,48,00,65,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
181 |
69,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,4d,00,53,00,59,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
182 |
00,48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,63,00,72,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
183 |
6f,00,73,00,6f,00,66,00,74,00,20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
184 |
00,49,00,20,00,42,00,6f,00,6c,00,64,00,2c,00,31,00,32,00,38,00,2c,00,39,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
185 |
36,00,00,00,4d,00,53,00,59,00,48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
186 |
00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,59,00,61,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
187 |
48,00,65,00,69,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,4d,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
188 |
00,41,00,4c,00,47,00,55,00,4e,00,42,00,44,00,2e,00,54,00,54,00,46,00,2c,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
189 |
4d,00,61,00,6c,00,67,00,75,00,6e,00,20,00,47,00,6f,00,74,00,68,00,69,00,63,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
190 |
00,20,00,42,00,6f,00,6c,00,64,00,2c,00,31,00,31,00,38,00,2c,00,39,00,36,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
191 |
00,00,4d,00,41,00,4c,00,47,00,55,00,4e,00,42,00,44,00,2e,00,54,00,54,00,46,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
192 |
00,2c,00,4d,00,61,00,6c,00,67,00,75,00,6e,00,20,00,47,00,6f,00,74,00,68,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
193 |
69,00,63,00,20,00,42,00,6f,00,6c,00,64,00,00,00,59,00,55,00,47,00,4f,00,54,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
194 |
00,48,00,42,00,2e,00,54,00,54,00,43,00,2c,00,59,00,75,00,20,00,47,00,6f,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
195 |
74,00,68,00,69,00,63,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,2c,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
196 |
00,31,00,32,00,38,00,2c,00,39,00,36,00,00,00,59,00,55,00,47,00,4f,00,54,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
197 |
48,00,42,00,2e,00,54,00,54,00,43,00,2c,00,59,00,75,00,20,00,47,00,6f,00,74,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
198 |
00,68,00,69,00,63,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
199 |
53,00,45,00,47,00,55,00,49,00,53,00,59,00,4d,00,2e,00,54,00,54,00,46,00,2c,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
200 |
00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,20,00,53,00,79,00,6d,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
201 |
62,00,6f,00,6c,00,00,00,00,00 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
202 |
"ř ž č ルすしか"=hex(7):27,00,54,00,65,00,73,00,74,00,69,00,6e,00,67,00,20,00,55,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
203 |
00,6e,00,69,00,63,00,6f,00,64,00,65,00,20,00,63,00,68,00,61,00,72,00,73,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
204 |
20,00,59,01,20,00,7e,01,20,00,0d,01,20,00,eb,30,59,30,57,30,4b,30,4d,30,27,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
205 |
00,29,00,00,00,53,00,45,00,47,00,4f,00,45,00,55,00,49,00,42,00,2e,00,54,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
206 |
54,00,46,00,2c,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,20,00,42,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
207 |
00,6f,00,6c,00,64,00,2c,00,31,00,31,00,30,00,2c,00,38,00,32,00,00,00,53,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
208 |
45,00,47,00,4f,00,45,00,55,00,49,00,42,00,2e,00,54,00,54,00,46,00,2c,00,53,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
209 |
00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
210 |
00,00,4d,00,45,00,49,00,52,00,59,00,4f,00,42,00,2e,00,54,00,54,00,43,00,2c,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
211 |
00,4d,00,65,00,69,00,72,00,79,00,6f,00,20,00,55,00,49,00,20,00,42,00,6f,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
212 |
6c,00,64,00,2c,00,31,00,32,00,30,00,2c,00,39,00,36,00,00,00,4d,00,45,00,49,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
213 |
00,52,00,59,00,4f,00,42,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,65,00,69,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
214 |
72,00,79,00,6f,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,4d,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
215 |
00,53,00,4a,00,48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
216 |
63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,4a,00,68,00,65,00,6e,00,67,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
217 |
00,48,00,65,00,69,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,2c,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
218 |
31,00,32,00,30,00,2c,00,39,00,36,00,00,00,4d,00,53,00,4a,00,48,00,42,00,44,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
219 |
00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
220 |
66,00,74,00,20,00,4a,00,68,00,65,00,6e,00,67,00,48,00,65,00,69,00,20,00,55,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
221 |
00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,4d,00,53,00,59,00,48,00,42,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
222 |
44,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
223 |
00,66,00,74,00,20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,00,49,00,20,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
224 |
42,00,6f,00,6c,00,64,00,2c,00,31,00,32,00,38,00,2c,00,39,00,36,00,00,00,4d,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
225 |
00,53,00,59,00,48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
226 |
63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,59,00,61,00,48,00,65,00,69,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
227 |
00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,4d,00,41,00,4c,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
228 |
47,00,55,00,4e,00,42,00,44,00,2e,00,54,00,54,00,46,00,2c,00,4d,00,61,00,6c,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
229 |
00,67,00,75,00,6e,00,20,00,47,00,6f,00,74,00,68,00,69,00,63,00,20,00,42,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
230 |
6f,00,6c,00,64,00,2c,00,31,00,31,00,38,00,2c,00,39,00,36,00,00,00,4d,00,41,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
231 |
00,4c,00,47,00,55,00,4e,00,42,00,44,00,2e,00,54,00,54,00,46,00,2c,00,4d,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
232 |
61,00,6c,00,67,00,75,00,6e,00,20,00,47,00,6f,00,74,00,68,00,69,00,63,00,20,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
233 |
00,42,00,6f,00,6c,00,64,00,00,00,59,00,55,00,47,00,4f,00,54,00,48,00,42,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
234 |
2e,00,54,00,54,00,43,00,2c,00,59,00,75,00,20,00,47,00,6f,00,74,00,68,00,69,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
235 |
00,63,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,2c,00,31,00,32,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
236 |
38,00,2c,00,39,00,36,00,00,00,59,00,55,00,47,00,4f,00,54,00,48,00,42,00,2e,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
237 |
00,54,00,54,00,43,00,2c,00,59,00,75,00,20,00,47,00,6f,00,74,00,68,00,69,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
238 |
63,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,53,00,45,00,47,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
239 |
00,55,00,49,00,53,00,59,00,4d,00,2e,00,54,00,54,00,46,00,2c,00,53,00,65,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
240 |
67,00,6f,00,65,00,20,00,55,00,49,00,20,00,53,00,79,00,6d,00,62,00,6f,00,6c,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
241 |
00,00,00,00,00 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
242 |
"Ugh"=hex(2):27,00,54,00,65,00,73,00,74,00,69,00,6e,00,67,00,20,00,55,00,6e,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
243 |
69,00,63,00,6f,00,64,00,65,00,20,00,63,00,68,00,61,00,72,00,73,00,20,00,59,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
244 |
01,20,00,7e,01,20,00,0d,01,20,00,eb,30,59,30,57,30,4b,30,4d,30,27,00,29,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
245 |
2e,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,00,00 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
246 |
" č ルすしか"=hex(2):27,00,54,00,65,00,73,00,74,00,69,00,6e,00,67,00,20,00,55,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
247 |
6e,00,69,00,63,00,6f,00,64,00,65,00,20,00,63,00,68,00,61,00,72,00,73,00,20,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
248 |
00,59,01,20,00,7e,01,20,00,0d,01,20,00,eb,30,59,30,57,30,4b,30,4d,30,27,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
249 |
29,00,2e,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,00,\ |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
250 |
00 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
251 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
252 |
[HKEY_CURRENT_USER\Software\SmalltalkX-tests\ ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end] |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
253 |
"testing"=" ルすしか" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
254 |
"か"=dword:00000002 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
255 |
"256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end"="Longer_than_256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|endsdfsdfasdfasdfasdfjlkasdjflkasjdflkjasdlfjaslkdfjlkasdjflkasdflksadlkjsadlfalsdfůlasdjflkasdjflkasjdflkůjasdflůkjasdlůfjalsůkdjflůksd" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
256 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
257 |
[HKEY_CURRENT_USER\Software\SmalltalkX-tests\ ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end] |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
258 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
259 |
[HKEY_CURRENT_USER\Software\SmalltalkX-tests\ ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end\unreachable] |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
260 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
261 |
[HKEY_CURRENT_USER\Software\SmalltalkX-tests\ ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end\reachable] |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
262 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
263 |
[HKEY_CURRENT_USER\Software\SmalltalkX-tests\ ルすしか_testing_delete] |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
264 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
265 |
[HKEY_CURRENT_USER\Software\SmalltalkX-tests\ ルすしか_testing_delete\ughu] |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
266 |
"bledesu"="''Testing Unicode chars ř ž č ルすしかき''). " |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
267 |
"しかき "="Testus gradus" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
268 |
" ř ž č ル. "="Testing Unicode chars ř ž č ルすしかき" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
269 |
"zero"=hex: |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
270 |
"non-zero"=hex:11,10 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
271 |
"す "=hex:10 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
272 |
"dword_value"=dword:000023af |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
273 |
"き"=dword:234234af |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
274 |
"qwordvalue"=hex(b):ad,61,28,a3,95,0e,74,79 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
275 |
"qword_max"=hex(b):ff,ff,ff,ff,ff,ff,ff,ff |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
276 |
"すし"=hex(b):ef,ad,00,00,00,00,00,00 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
277 |
"Font_Leelawadee UI Bold"=hex(7):53,00,45,00,47,00,4f,00,45,00,55,00,49,00,42,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
278 |
00,2e,00,54,00,54,00,46,00,2c,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
279 |
49,00,20,00,42,00,6f,00,6c,00,64,00,2c,00,31,00,31,00,30,00,2c,00,38,00,32,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
280 |
00,00,00,53,00,45,00,47,00,4f,00,45,00,55,00,49,00,42,00,2e,00,54,00,54,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
281 |
46,00,2c,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,20,00,42,00,6f,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
282 |
00,6c,00,64,00,00,00,4d,00,45,00,49,00,52,00,59,00,4f,00,42,00,2e,00,54,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
283 |
54,00,43,00,2c,00,4d,00,65,00,69,00,72,00,79,00,6f,00,20,00,55,00,49,00,20,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
284 |
00,42,00,6f,00,6c,00,64,00,2c,00,31,00,32,00,30,00,2c,00,39,00,36,00,00,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
285 |
4d,00,45,00,49,00,52,00,59,00,4f,00,42,00,2e,00,54,00,54,00,43,00,2c,00,4d,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
286 |
00,65,00,69,00,72,00,79,00,6f,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
287 |
64,00,00,00,4d,00,53,00,4a,00,48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
288 |
00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,4a,00,68,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
289 |
65,00,6e,00,67,00,48,00,65,00,69,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
290 |
00,64,00,2c,00,31,00,32,00,30,00,2c,00,39,00,36,00,00,00,4d,00,53,00,4a,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
291 |
48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,63,00,72,00,6f,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
292 |
00,73,00,6f,00,66,00,74,00,20,00,4a,00,68,00,65,00,6e,00,67,00,48,00,65,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
293 |
69,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,4d,00,53,00,59,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
294 |
00,48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,63,00,72,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
295 |
6f,00,73,00,6f,00,66,00,74,00,20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
296 |
00,49,00,20,00,42,00,6f,00,6c,00,64,00,2c,00,31,00,32,00,38,00,2c,00,39,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
297 |
36,00,00,00,4d,00,53,00,59,00,48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
298 |
00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,59,00,61,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
299 |
48,00,65,00,69,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,4d,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
300 |
00,41,00,4c,00,47,00,55,00,4e,00,42,00,44,00,2e,00,54,00,54,00,46,00,2c,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
301 |
4d,00,61,00,6c,00,67,00,75,00,6e,00,20,00,47,00,6f,00,74,00,68,00,69,00,63,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
302 |
00,20,00,42,00,6f,00,6c,00,64,00,2c,00,31,00,31,00,38,00,2c,00,39,00,36,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
303 |
00,00,4d,00,41,00,4c,00,47,00,55,00,4e,00,42,00,44,00,2e,00,54,00,54,00,46,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
304 |
00,2c,00,4d,00,61,00,6c,00,67,00,75,00,6e,00,20,00,47,00,6f,00,74,00,68,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
305 |
69,00,63,00,20,00,42,00,6f,00,6c,00,64,00,00,00,59,00,55,00,47,00,4f,00,54,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
306 |
00,48,00,42,00,2e,00,54,00,54,00,43,00,2c,00,59,00,75,00,20,00,47,00,6f,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
307 |
74,00,68,00,69,00,63,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,2c,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
308 |
00,31,00,32,00,38,00,2c,00,39,00,36,00,00,00,59,00,55,00,47,00,4f,00,54,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
309 |
48,00,42,00,2e,00,54,00,54,00,43,00,2c,00,59,00,75,00,20,00,47,00,6f,00,74,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
310 |
00,68,00,69,00,63,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
311 |
53,00,45,00,47,00,55,00,49,00,53,00,59,00,4d,00,2e,00,54,00,54,00,46,00,2c,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
312 |
00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,20,00,53,00,79,00,6d,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
313 |
62,00,6f,00,6c,00,00,00,00,00 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
314 |
"ř ž č ルすしか"=hex(7):27,00,54,00,65,00,73,00,74,00,69,00,6e,00,67,00,20,00,55,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
315 |
00,6e,00,69,00,63,00,6f,00,64,00,65,00,20,00,63,00,68,00,61,00,72,00,73,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
316 |
20,00,59,01,20,00,7e,01,20,00,0d,01,20,00,eb,30,59,30,57,30,4b,30,4d,30,27,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
317 |
00,29,00,00,00,53,00,45,00,47,00,4f,00,45,00,55,00,49,00,42,00,2e,00,54,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
318 |
54,00,46,00,2c,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,20,00,42,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
319 |
00,6f,00,6c,00,64,00,2c,00,31,00,31,00,30,00,2c,00,38,00,32,00,00,00,53,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
320 |
45,00,47,00,4f,00,45,00,55,00,49,00,42,00,2e,00,54,00,54,00,46,00,2c,00,53,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
321 |
00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
322 |
00,00,4d,00,45,00,49,00,52,00,59,00,4f,00,42,00,2e,00,54,00,54,00,43,00,2c,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
323 |
00,4d,00,65,00,69,00,72,00,79,00,6f,00,20,00,55,00,49,00,20,00,42,00,6f,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
324 |
6c,00,64,00,2c,00,31,00,32,00,30,00,2c,00,39,00,36,00,00,00,4d,00,45,00,49,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
325 |
00,52,00,59,00,4f,00,42,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,65,00,69,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
326 |
72,00,79,00,6f,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,4d,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
327 |
00,53,00,4a,00,48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
328 |
63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,4a,00,68,00,65,00,6e,00,67,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
329 |
00,48,00,65,00,69,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,2c,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
330 |
31,00,32,00,30,00,2c,00,39,00,36,00,00,00,4d,00,53,00,4a,00,48,00,42,00,44,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
331 |
00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
332 |
66,00,74,00,20,00,4a,00,68,00,65,00,6e,00,67,00,48,00,65,00,69,00,20,00,55,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
333 |
00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,4d,00,53,00,59,00,48,00,42,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
334 |
44,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
335 |
00,66,00,74,00,20,00,59,00,61,00,48,00,65,00,69,00,20,00,55,00,49,00,20,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
336 |
42,00,6f,00,6c,00,64,00,2c,00,31,00,32,00,38,00,2c,00,39,00,36,00,00,00,4d,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
337 |
00,53,00,59,00,48,00,42,00,44,00,2e,00,54,00,54,00,43,00,2c,00,4d,00,69,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
338 |
63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,59,00,61,00,48,00,65,00,69,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
339 |
00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,4d,00,41,00,4c,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
340 |
47,00,55,00,4e,00,42,00,44,00,2e,00,54,00,54,00,46,00,2c,00,4d,00,61,00,6c,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
341 |
00,67,00,75,00,6e,00,20,00,47,00,6f,00,74,00,68,00,69,00,63,00,20,00,42,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
342 |
6f,00,6c,00,64,00,2c,00,31,00,31,00,38,00,2c,00,39,00,36,00,00,00,4d,00,41,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
343 |
00,4c,00,47,00,55,00,4e,00,42,00,44,00,2e,00,54,00,54,00,46,00,2c,00,4d,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
344 |
61,00,6c,00,67,00,75,00,6e,00,20,00,47,00,6f,00,74,00,68,00,69,00,63,00,20,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
345 |
00,42,00,6f,00,6c,00,64,00,00,00,59,00,55,00,47,00,4f,00,54,00,48,00,42,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
346 |
2e,00,54,00,54,00,43,00,2c,00,59,00,75,00,20,00,47,00,6f,00,74,00,68,00,69,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
347 |
00,63,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,2c,00,31,00,32,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
348 |
38,00,2c,00,39,00,36,00,00,00,59,00,55,00,47,00,4f,00,54,00,48,00,42,00,2e,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
349 |
00,54,00,54,00,43,00,2c,00,59,00,75,00,20,00,47,00,6f,00,74,00,68,00,69,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
350 |
63,00,20,00,55,00,49,00,20,00,42,00,6f,00,6c,00,64,00,00,00,53,00,45,00,47,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
351 |
00,55,00,49,00,53,00,59,00,4d,00,2e,00,54,00,54,00,46,00,2c,00,53,00,65,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
352 |
67,00,6f,00,65,00,20,00,55,00,49,00,20,00,53,00,79,00,6d,00,62,00,6f,00,6c,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
353 |
00,00,00,00,00 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
354 |
"Ugh"=hex(2):27,00,54,00,65,00,73,00,74,00,69,00,6e,00,67,00,20,00,55,00,6e,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
355 |
69,00,63,00,6f,00,64,00,65,00,20,00,63,00,68,00,61,00,72,00,73,00,20,00,59,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
356 |
01,20,00,7e,01,20,00,0d,01,20,00,eb,30,59,30,57,30,4b,30,4d,30,27,00,29,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
357 |
2e,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,00,00 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
358 |
" č ルすしか"=hex(2):27,00,54,00,65,00,73,00,74,00,69,00,6e,00,67,00,20,00,55,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
359 |
6e,00,69,00,63,00,6f,00,64,00,65,00,20,00,63,00,68,00,61,00,72,00,73,00,20,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
360 |
00,59,01,20,00,7e,01,20,00,0d,01,20,00,eb,30,59,30,57,30,4b,30,4d,30,27,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
361 |
29,00,2e,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,20,00,00,\ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
362 |
00 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
363 |
[HKEY_CURRENT_USER\Software\SmalltalkX-tests\ ルすしか_testing_delete\zubr] |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
364 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
365 |
[HKEY_CURRENT_USER\Software\SmalltalkX-tests\ ルすしか_testing_delete\reg-none] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
366 |
@=hex(0): |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
367 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
368 |
[HKEY_CURRENT_USER\Software\SmalltalkX-tests\ ルすしか_testing_delete\bobr] |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
369 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
370 |
[HKEY_CURRENT_USER\Software\SmalltalkX-tests\ ルすしか_testing_delete\bobr\boříččátka] |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
371 |
' |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
372 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
373 |
"Created: / 16-11-2018 / 11:24:57 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
374 |
"Modified: / 01-02-2019 / 13:08:58 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
375 |
! ! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
376 |
|
344 | 377 |
!Win32OperatingSystemTest methodsFor:'release'! |
378 |
||
1566
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
379 |
setUp |
2592
7aa9af5b0ddb
Added additional asserts into #setUp to make sure the testing environment is in expected state
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2214
diff
changeset
|
380 |
| registryToImport file returnString | |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
381 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
382 |
self skipIf: OperatingSystem isMSWINDOWSlike not description: 'Windows only tests (registry manipulation)'. |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
383 |
super setUp. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
384 |
|
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
385 |
windowsDetailsRegistryPath := 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion'. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
386 |
|
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
387 |
registryToImport := self unicodeRegistryExample. |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
388 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
389 |
"/ registry path which will be used |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
390 |
registryPath := registryToImport |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
391 |
copyFrom: (registryToImport indexOf: $[) + 1 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
392 |
to: (registryToImport indexOf: $]) - 1. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
393 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
394 |
"/ temporary file which will be used for importing |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
395 |
file := Filename newTemporary. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
396 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
397 |
"/ Registry export is in UTF-16LE with BOM |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
398 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
399 |
" What is BOM? |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
400 |
A byte order mark (BOM) consists of the character code U+FEFF at the beginning of a data stream, where it can be used as a signature |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
401 |
defining the byte order and encoding form, primarily of unmarked plaintext files. Under some higher level protocols, use of a BOM may |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
402 |
be mandatory (or prohibited) in the Unicode data stream defined in that protocol." |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
403 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
404 |
"/ needed to write to file as Windows Registry do UTF16-LE With Signature |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
405 |
" BOM for UTF-16is: |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
406 |
FE FF UTF-16, big-endian (BE) |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
407 |
FF FE UTF-16, little-endian (LE)" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
408 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
409 |
"/ Writing BOM first |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
410 |
file writingFileDo: [ :stream | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
411 |
stream nextPutUtf16: (Character codePoint:16rFFFE) |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
412 |
]. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
413 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
414 |
"/ this is UTF16-LE (Little Endian) Without Signature (BOM) |
2592
7aa9af5b0ddb
Added additional asserts into #setUp to make sure the testing environment is in expected state
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2214
diff
changeset
|
415 |
file appendingFileDo: [ :stream | stream nextPutAllUtf16Bytes: registryToImport MSB: false ]. |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
416 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
417 |
[ "/ adding registry entry so we can test it |
2592
7aa9af5b0ddb
Added additional asserts into #setUp to make sure the testing environment is in expected state
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2214
diff
changeset
|
418 |
returnString := OperatingSystem getCommandOutputFrom: ('REG IMPORT ' , file asString) |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
419 |
] ensure: [ file remove ]. |
2592
7aa9af5b0ddb
Added additional asserts into #setUp to make sure the testing environment is in expected state
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2214
diff
changeset
|
420 |
|
7aa9af5b0ddb
Added additional asserts into #setUp to make sure the testing environment is in expected state
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2214
diff
changeset
|
421 |
"/ should REG IMPORT command fail the returnString is nil |
7aa9af5b0ddb
Added additional asserts into #setUp to make sure the testing environment is in expected state
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2214
diff
changeset
|
422 |
self deny: returnString isNil. |
7aa9af5b0ddb
Added additional asserts into #setUp to make sure the testing environment is in expected state
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2214
diff
changeset
|
423 |
"/ Check if testing registry entry was correctly created |
7aa9af5b0ddb
Added additional asserts into #setUp to make sure the testing environment is in expected state
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2214
diff
changeset
|
424 |
self deny: (OperatingSystem registryEntry key: registryPath) isNil. |
1566
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
425 |
|
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
426 |
"Created: / 28-12-2016 / 22:12:14 / jv" |
2592
7aa9af5b0ddb
Added additional asserts into #setUp to make sure the testing environment is in expected state
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2214
diff
changeset
|
427 |
"Modified (comment): / 03-06-2020 / 12:59:37 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
428 |
! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
429 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
430 |
tearDown |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
431 |
self skipIf: OperatingSystem isMSWINDOWSlike not description: 'Windows specific tests'. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
432 |
super tearDown. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
433 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
434 |
"/ remove the added registry entry |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
435 |
OperatingSystem getCommandOutputFrom:('REG DELETE "', registryPath, '" /f'). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
436 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
437 |
"/ Check if testing registry was correctly deleted |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
438 |
self assert: ((OperatingSystem registryEntry key: registryPath) isNil). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
439 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
440 |
"Created: / 16-11-2018 / 11:29:12 / svestkap" |
344 | 441 |
! ! |
442 |
||
443 |
!Win32OperatingSystemTest methodsFor:'tests'! |
|
444 |
||
445 |
testMutex |
|
446 |
|handle alreadyExists lastErrorCode handleAndLastErrorCode| |
|
447 |
||
1977
f53c1ec52418
`Win32OperatingSystemTest`: use generated mutex name to allow tests to run in parallel
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1974
diff
changeset
|
448 |
handleAndLastErrorCode := Win32OperatingSystem createMutexNamed: UUID new printString. |
344 | 449 |
handle := handleAndLastErrorCode first. |
450 |
handle isNil ifTrue:[^ self]. |
|
451 |
lastErrorCode := handleAndLastErrorCode second. |
|
452 |
self assert: lastErrorCode == 0. |
|
453 |
alreadyExists := (lastErrorCode == 5 "ERROR_ACCESS_DENIED" or:[ lastErrorCode == 183 "ERROR_ALREADY_EXISTS"]). |
|
454 |
alreadyExists ifTrue:[ |
|
1566
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
455 |
Transcript showCR: 'Mutex already exists!!'. |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
456 |
^ self. |
344 | 457 |
]. |
1977
f53c1ec52418
`Win32OperatingSystemTest`: use generated mutex name to allow tests to run in parallel
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1974
diff
changeset
|
458 |
[ |
f53c1ec52418
`Win32OperatingSystemTest`: use generated mutex name to allow tests to run in parallel
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1974
diff
changeset
|
459 |
Transcript showCR: 'Mutex created!!'. |
f53c1ec52418
`Win32OperatingSystemTest`: use generated mutex name to allow tests to run in parallel
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1974
diff
changeset
|
460 |
Win32OperatingSystem waitForSingleObject: handle. |
f53c1ec52418
`Win32OperatingSystemTest`: use generated mutex name to allow tests to run in parallel
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1974
diff
changeset
|
461 |
Delay waitForSeconds:0.5. "/ self halt. |
f53c1ec52418
`Win32OperatingSystemTest`: use generated mutex name to allow tests to run in parallel
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1974
diff
changeset
|
462 |
Win32OperatingSystem releaseMutex: handle. |
f53c1ec52418
`Win32OperatingSystemTest`: use generated mutex name to allow tests to run in parallel
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1974
diff
changeset
|
463 |
] ensure:[ |
f53c1ec52418
`Win32OperatingSystemTest`: use generated mutex name to allow tests to run in parallel
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1974
diff
changeset
|
464 |
Win32OperatingSystem primCloseHandle: handle. |
f53c1ec52418
`Win32OperatingSystemTest`: use generated mutex name to allow tests to run in parallel
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1974
diff
changeset
|
465 |
Transcript showCR: 'Mutex closed!!'. |
f53c1ec52418
`Win32OperatingSystemTest`: use generated mutex name to allow tests to run in parallel
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1974
diff
changeset
|
466 |
]. |
f53c1ec52418
`Win32OperatingSystemTest`: use generated mutex name to allow tests to run in parallel
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1974
diff
changeset
|
467 |
|
344 | 468 |
|
469 |
" |
|
470 |
self new testMutex |
|
471 |
" |
|
1566
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
472 |
|
1977
f53c1ec52418
`Win32OperatingSystemTest`: use generated mutex name to allow tests to run in parallel
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1974
diff
changeset
|
473 |
"Modified: / 28-06-2018 / 09:14:35 / jv" |
1352 | 474 |
! |
475 |
||
476 |
testRegistry |
|
477 |
|k hasContentType| |
|
478 |
||
479 |
k := OperatingSystem registryEntry key:'HKEY_CLASSES_ROOT\MIME\Database\'. |
|
480 |
self assert:(k notNil). |
|
481 |
||
482 |
hasContentType := false. |
|
1447 | 483 |
k subKeyNamesAndClassesDo:[:nm :clsNm | |
1566
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
484 |
"/ Transcript showCR:nm. |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
485 |
nm = 'Content Type' ifTrue:[hasContentType := true]. |
1352 | 486 |
]. |
487 |
self assert:hasContentType. |
|
488 |
||
489 |
"/ k subKeysDo:[:k | Transcript showCR:k]. |
|
490 |
||
491 |
" |
|
492 |
self new testRegistry |
|
493 |
" |
|
1566
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
494 |
|
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
495 |
"Modified: / 28-12-2016 / 22:13:43 / jv" |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
496 |
! |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
497 |
|
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
498 |
testRegistry02a |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
499 |
| root key | |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
500 |
|
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
501 |
root :=OperatingSystem registryEntry key:'HKEY_CURRENT_USER'. |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
502 |
root deleteSubKeyNamed: testSelector. |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
503 |
|
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
504 |
self assert:(root subKeyNamed: testSelector) isNil. |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
505 |
self deny: (root deleteSubKeyNamed: testSelector). |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
506 |
|
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
507 |
key := root createSubKeyNamed:testSelector. |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
508 |
self assert: key notNil. |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
509 |
self assert:(root subKeyNamed: testSelector) notNil. |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
510 |
|
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
511 |
self assert: (root deleteSubKeyNamed:testSelector). |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
512 |
self assert:(root subKeyNamed: testSelector) isNil. |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
513 |
self deny: (root deleteSubKeyNamed: testSelector). |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
514 |
|
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
515 |
"Created: / 28-12-2016 / 23:14:15 / jv" |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
516 |
"Modified: / 05-01-2017 / 21:45:20 / jv" |
344 | 517 |
! ! |
518 |
||
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
519 |
!Win32OperatingSystemTest methodsFor:'tests-UnicodeCreate'! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
520 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
521 |
testCreatingSubKeyNamed_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
522 |
"Testing if new subKey is created" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
523 |
| readData testingRegistryPath readSubKeys subKeysCount | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
524 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
525 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
526 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
527 |
subKeysCount := readSubKeys size. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
528 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
529 |
self assert: subKeysCount = 3. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
530 |
"/ creating the new subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
531 |
readData := testingRegistryPath subKeyNamed: 'bledesu ル' flags: nil createIfAbsent: true. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
532 |
"/ check if new path is with the subKeyNamed above |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
533 |
self assert: (readData path copyAfterLast: $\) = 'bledesu ル' . |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
534 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
535 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
536 |
self assert: readSubKeys size = (subKeysCount + 1) |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
537 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
538 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
539 |
self run:#testCreatingSubKeyNamed_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
540 |
self new testCreatingSubKeyNamed_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
541 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
542 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
543 |
"Created: / 07-12-2018 / 15:30:55 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
544 |
"Modified: / 12-02-2019 / 14:48:57 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
545 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
546 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
547 |
testCreatingSubKeyNamed_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
548 |
"Testing if new subKey is created via createSubKeyNamed:" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
549 |
| readData testingRegistryPath readSubKeys subKeysCount | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
550 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
551 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
552 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
553 |
subKeysCount := readSubKeys size. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
554 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
555 |
self assert: subKeysCount = 3. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
556 |
"/ creating the new subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
557 |
readData := testingRegistryPath createSubKeyNamed: 'bledesu ル'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
558 |
"/ check if new path is with the subKeyNamed above |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
559 |
self assert: (readData path copyAfterLast: $\) = 'bledesu ル' . |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
560 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
561 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
562 |
self assert: readSubKeys size = (subKeysCount + 1) |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
563 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
564 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
565 |
self run:#testCreatingSubKeyNamed_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
566 |
self new testCreatingSubKeyNamed_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
567 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
568 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
569 |
"Created: / 07-12-2018 / 15:57:09 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
570 |
"Modified: / 12-02-2019 / 14:48:53 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
571 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
572 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
573 |
testCreatingSubKeyNamed_Wow64_32_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
574 |
"Testing if new subKey is created in Wow64_32 (32bit program reading 32bit registry)" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
575 |
| windowsVersion readData testingRegistryPath readSubKeys subKeysCount | |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
576 |
|
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
577 |
windowsVersion := Win32OperatingSystem registryEntry key: windowsDetailsRegistryPath. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
578 |
self skipIf: (windowsVersion valueNamed: 'BuildLabEx') isNil description: 'Skipping test the registry key does not exist. Happens in some ancient Windows (XP)'. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
579 |
self skipIf: ((windowsVersion valueNamed: 'BuildLabEx') includesString: 'x86') description: 'Skip test if on 32bit Windows (x86)'. "/ amd64 for x64 Windows |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
580 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
581 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
582 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
583 |
subKeysCount := readSubKeys size. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
584 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
585 |
self assert: subKeysCount = 3. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
586 |
"/ creating the new subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
587 |
readData := testingRegistryPath subKeyNamed: 'bledesu ル' flags: #KEY_WOW64_32KEY createIfAbsent: true. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
588 |
"/ check if new path is with the subKeyNamed above |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
589 |
self assert: (readData path copyAfterLast: $\) = 'bledesu ル' . |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
590 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
591 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
592 |
self assert: readSubKeys size = (subKeysCount + 1) |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
593 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
594 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
595 |
self run:#testCreatingSubKeyNamed_Wow64_32_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
596 |
self new testCreatingSubKeyNamed_Wow64_32_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
597 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
598 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
599 |
"Created: / 07-12-2018 / 15:58:24 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
600 |
"Modified: / 12-02-2019 / 14:47:40 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
601 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
602 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
603 |
testCreatingSubKeyNamed_Wow64_32_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
604 |
"Testing if new subKey is created in Wow64_32 (32bit program reading 32bit registry) via createSubKeyNamed:flags:" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
605 |
| windowsVersion readData testingRegistryPath readSubKeys subKeysCount | |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
606 |
|
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
607 |
windowsVersion := Win32OperatingSystem registryEntry key: windowsDetailsRegistryPath. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
608 |
self skipIf: (windowsVersion valueNamed: 'BuildLabEx') isNil description: 'Skipping test the registry key does not exist. Happens in some ancient Windows (XP)'. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
609 |
self skipIf: ((windowsVersion valueNamed: 'BuildLabEx') includesString: 'x86') description: 'Skip test if on 32bit Windows (x86)'. "/ amd64 for x64 Windows |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
610 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
611 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
612 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
613 |
subKeysCount := readSubKeys size. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
614 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
615 |
self assert: subKeysCount = 3. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
616 |
"/ creating the new subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
617 |
readData := testingRegistryPath createSubKeyNamed: 'bledesu ル' flags: #KEY_WOW64_32KEY. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
618 |
"/ check if new path is with the subKeyNamed above |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
619 |
self assert: (readData path copyAfterLast: $\) = 'bledesu ル' . |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
620 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
621 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
622 |
self assert: readSubKeys size = (subKeysCount + 1) |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
623 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
624 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
625 |
self run:#testCreatingSubKeyNamed_Wow64_32_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
626 |
self new testCreatingSubKeyNamed_Wow64_32_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
627 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
628 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
629 |
"Created: / 07-12-2018 / 15:59:32 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
630 |
"Modified: / 12-02-2019 / 14:47:57 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
631 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
632 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
633 |
testCreatingSubKeyNamed_Wow64_64_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
634 |
"Testing if new subKey is created in Wow64_32 (32bit program reading 64bit registry)" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
635 |
| windowsVersion readData testingRegistryPath readSubKeys subKeysCount | |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
636 |
|
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
637 |
windowsVersion := Win32OperatingSystem registryEntry key: windowsDetailsRegistryPath. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
638 |
self skipIf: (windowsVersion valueNamed: 'BuildLabEx') isNil description: 'Skipping test the registry key does not exist. Happens in some ancient Windows (XP)'. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
639 |
self skipIf: ((windowsVersion valueNamed: 'BuildLabEx') includesString: 'x86') description: 'Skip test if on 32bit Windows (x86)'. "/ amd64 for x64 Windows |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
640 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
641 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
642 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
643 |
subKeysCount := readSubKeys size. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
644 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
645 |
self assert: subKeysCount = 3. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
646 |
"/ creating the new subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
647 |
readData := testingRegistryPath subKeyNamed: 'bledesu ル' flags: #KEY_WOW64_64KEY createIfAbsent: true. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
648 |
"/ check if new path is with the subKeyNamed above |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
649 |
self assert: (readData path copyAfterLast: $\) = 'bledesu ル' . |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
650 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
651 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
652 |
self assert: readSubKeys size = (subKeysCount + 1) |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
653 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
654 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
655 |
self run:#testCreatingSubKeyNamed_Wow64_64_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
656 |
self new testCreatingSubKeyNamed_Wow64_64_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
657 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
658 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
659 |
"Created: / 07-12-2018 / 15:58:38 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
660 |
"Modified: / 12-02-2019 / 14:48:17 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
661 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
662 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
663 |
testCreatingSubKeyNamed_Wow64_64_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
664 |
"Testing if new subKey is created in Wow64_32 (32bit program reading 64bit registry) via createSubKeyNamed:flags:" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
665 |
| windowsVersion readData testingRegistryPath readSubKeys subKeysCount | |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
666 |
|
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
667 |
windowsVersion := Win32OperatingSystem registryEntry key: windowsDetailsRegistryPath. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
668 |
self skipIf: (windowsVersion valueNamed: 'BuildLabEx') isNil description: 'Skipping test the registry key does not exist. Happens in some ancient Windows (XP)'. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
669 |
self skipIf: ((windowsVersion valueNamed: 'BuildLabEx') includesString: 'x86') description: 'Skip test if on 32bit Windows (x86)'. "/ amd64 for x64 Windows |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
670 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
671 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
672 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
673 |
subKeysCount := readSubKeys size. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
674 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
675 |
self assert: subKeysCount = 3. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
676 |
"/ creating the new subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
677 |
readData := testingRegistryPath createSubKeyNamed: 'bledesu ル' flags: #KEY_WOW64_64KEY. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
678 |
"/ check if new path is with the subKeyNamed above |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
679 |
self assert: (readData path copyAfterLast: $\) = 'bledesu ル' . |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
680 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
681 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
682 |
self assert: readSubKeys size = (subKeysCount + 1) |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
683 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
684 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
685 |
self run:#testCreatingSubKeyNamed_Wow64_64_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
686 |
self new testCreatingSubKeyNamed_Wow64_64_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
687 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
688 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
689 |
"Created: / 07-12-2018 / 15:59:50 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
690 |
"Modified: / 12-02-2019 / 14:48:41 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
691 |
! ! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
692 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
693 |
!Win32OperatingSystemTest methodsFor:'tests-UnicodeOpen'! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
694 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
695 |
testOpenSubKeyNamed_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
696 |
"Testing if an old subKey is opened" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
697 |
| readData testingRegistryPath readSubKeys subKeysCount | |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
698 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
699 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
700 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
701 |
subKeysCount := readSubKeys size. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
702 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
703 |
self assert: subKeysCount = 3. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
704 |
"/ trying to read already existing subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
705 |
readData := testingRegistryPath subKeyNamed: ' ルすしか' flags: nil createIfAbsent: false. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
706 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
707 |
"/ check if the existing |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
708 |
self assert: (readData path copyAfterLast: $\) = ' ルすしか'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
709 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
710 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
711 |
self run:#testOpenSubKeyNamed_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
712 |
self new testOpenSubKeyNamed_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
713 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
714 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
715 |
"Created: / 07-12-2018 / 15:34:21 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
716 |
"Modified: / 12-02-2019 / 14:49:06 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
717 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
718 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
719 |
testOpenSubKeyNamed_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
720 |
"Testing if an old subKey is opened" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
721 |
| readData testingRegistryPath readSubKeys subKeysCount | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
722 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
723 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
724 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
725 |
subKeysCount := readSubKeys size. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
726 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
727 |
self assert: subKeysCount = 3. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
728 |
"/ trying to read already existing subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
729 |
readData := testingRegistryPath subKeyNamed: ' ルすしか' flags: nil createIfAbsent: true. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
730 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
731 |
"/ check if the existing |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
732 |
self assert: (readData path copyAfterLast: $\) = ' ルすしか'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
733 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
734 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
735 |
self run:#testOpenSubKeyNamed_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
736 |
self new testOpenSubKeyNamed_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
737 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
738 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
739 |
"Created: / 07-12-2018 / 15:36:27 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
740 |
"Modified: / 12-02-2019 / 14:49:10 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
741 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
742 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
743 |
testOpenSubKeyNamed_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
744 |
"Testing if an old subKey is opened via subKeyNamed:" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
745 |
| readData testingRegistryPath readSubKeys subKeysCount | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
746 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
747 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
748 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
749 |
subKeysCount := readSubKeys size. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
750 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
751 |
self assert: subKeysCount = 3. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
752 |
"/ trying to read already existing subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
753 |
readData := testingRegistryPath subKeyNamed: ' ルすしか'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
754 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
755 |
"/ check if the existing |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
756 |
self assert: (readData path copyAfterLast: $\) = ' ルすしか'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
757 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
758 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
759 |
self run:#testOpenSubKeyNamed_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
760 |
self new testOpenSubKeyNamed_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
761 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
762 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
763 |
"Created: / 07-12-2018 / 15:47:59 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
764 |
"Modified: / 12-02-2019 / 14:49:15 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
765 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
766 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
767 |
testOpenSubKeyNamed_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
768 |
"Testing if an old subKey is opened via subKeyNamed:createIfAbsent:" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
769 |
| readData testingRegistryPath readSubKeys subKeysCount | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
770 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
771 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
772 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
773 |
subKeysCount := readSubKeys size. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
774 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
775 |
self assert: subKeysCount = 3. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
776 |
"/ trying to read already existing subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
777 |
readData := testingRegistryPath subKeyNamed: ' ルすしか' createIfAbsent: true. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
778 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
779 |
"/ check if the existing |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
780 |
self assert: (readData path copyAfterLast: $\) = ' ルすしか'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
781 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
782 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
783 |
self run:#testOpenSubKeyNamed_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
784 |
self new testOpenSubKeyNamed_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
785 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
786 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
787 |
"Created: / 07-12-2018 / 15:51:52 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
788 |
"Modified: / 12-02-2019 / 14:49:20 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
789 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
790 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
791 |
testOpenSubKeyNamed_05 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
792 |
"Testing an error is raised when number is used to access the subKey via subKeyNamed:createIfAbsent:" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
793 |
| testingRegistryPath readSubKeys subKeysCount | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
794 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
795 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
796 |
readSubKeys := testingRegistryPath subKeys. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
797 |
subKeysCount := readSubKeys size. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
798 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
799 |
self assert: subKeysCount = 3. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
800 |
"/ trying to read already existing subKey |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
801 |
self should: [ testingRegistryPath subKeyNamed: 11 createIfAbsent: true ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
802 |
raise: Error |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
803 |
suchThat: [ :e | e messageText = 'subKeyString is not a string!!' ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
804 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
805 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
806 |
self run:#testOpenSubKeyNamed_05 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
807 |
self new testOpenSubKeyNamed_05 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
808 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
809 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
810 |
"Created: / 01-02-2019 / 15:58:49 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
811 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
812 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
813 |
testOpenSubKeyNamed_Wow64_32_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
814 |
"Testing if an old subKey is opened in Wow64_32 (32bit program reading 32bit registry)" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
815 |
| windowsVersion readData testingRegistryPath readSubKeys subKeysCount | |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
816 |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
817 |
windowsVersion := Win32OperatingSystem registryEntry key: windowsDetailsRegistryPath. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
818 |
self skipIf: (windowsVersion valueNamed: 'BuildLabEx') isNil description: 'Skipping test the registry key does not exist. Happens in some ancient Windows (XP)'. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
819 |
self skipIf: ((windowsVersion valueNamed: 'BuildLabEx') includesString: 'x86') description: 'Skip test if on 32bit Windows (x86)'. "/ amd64 for x64 Windows |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
820 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
821 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
822 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
823 |
subKeysCount := readSubKeys size. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
824 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
825 |
self assert: subKeysCount = 3. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
826 |
"/ trying to read already existing subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
827 |
readData := testingRegistryPath subKeyNamed: ' ルすしか' flags: #KEY_WOW64_32KEY createIfAbsent: false. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
828 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
829 |
"/ check if the existing |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
830 |
self assert: (readData path copyAfterLast: $\) = ' ルすしか'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
831 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
832 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
833 |
self run:#testOpenSubKeyNamed_Wow64_32_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
834 |
self new testOpenSubKeyNamed_Wow64_32_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
835 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
836 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
837 |
"Created: / 07-12-2018 / 15:53:04 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
838 |
"Modified: / 12-02-2019 / 14:47:03 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
839 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
840 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
841 |
testOpenSubKeyNamed_Wow64_32_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
842 |
"Testing if an old subKey is opened in Wow64_32 (32bit program reading 32bit registry) via subKeyNamed:flags:" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
843 |
| windowsVersion readData testingRegistryPath readSubKeys subKeysCount | |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
844 |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
845 |
windowsVersion := Win32OperatingSystem registryEntry key: windowsDetailsRegistryPath. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
846 |
self skipIf: (windowsVersion valueNamed: 'BuildLabEx') isNil description: 'Skipping test the registry key does not exist. Happens in some ancient Windows (XP)'. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
847 |
self skipIf: ((windowsVersion valueNamed: 'BuildLabEx') includesString: 'x86') description: 'Skip test if on 32bit Windows (x86)'. "/ amd64 for x64 Windows |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
848 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
849 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
850 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
851 |
subKeysCount := readSubKeys size. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
852 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
853 |
self assert: subKeysCount = 3. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
854 |
"/ trying to read already existing subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
855 |
readData := testingRegistryPath subKeyNamed: ' ルすしか' flags: #KEY_WOW64_32KEY. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
856 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
857 |
"/ check if the existing |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
858 |
self assert: (readData path copyAfterLast: $\) = ' ルすしか'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
859 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
860 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
861 |
self run:#testOpenSubKeyNamed_Wow64_32_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
862 |
self new testOpenSubKeyNamed_Wow64_32_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
863 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
864 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
865 |
"Created: / 07-12-2018 / 15:54:31 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
866 |
"Modified: / 12-02-2019 / 14:47:06 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
867 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
868 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
869 |
testOpenSubKeyNamed_Wow64_64_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
870 |
"Testing if an old subKey is opened in Wow64_64 (32bit program reading 64bit registry)" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
871 |
| windowsVersion readData testingRegistryPath readSubKeys subKeysCount | |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
872 |
|
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
873 |
windowsVersion := Win32OperatingSystem registryEntry key: windowsDetailsRegistryPath. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
874 |
self skipIf: (windowsVersion valueNamed: 'BuildLabEx') isNil description: 'Skipping test the registry key does not exist. Happens in some ancient Windows (XP)'. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
875 |
self skipIf: ((windowsVersion valueNamed: 'BuildLabEx') includesString: 'x86') description: 'Skip test if on 32bit Windows (x86)'. "/ amd64 for x64 Windows |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
876 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
877 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
878 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
879 |
subKeysCount := readSubKeys size. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
880 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
881 |
self assert: subKeysCount = 3. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
882 |
"/ trying to read already existing subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
883 |
readData := testingRegistryPath subKeyNamed: ' ルすしか' flags: #KEY_WOW64_64KEY createIfAbsent: false. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
884 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
885 |
"/ check if the existing |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
886 |
self assert: (readData path copyAfterLast: $\) = ' ルすしか'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
887 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
888 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
889 |
self run:#testOpenSubKeyNamed_Wow64_64_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
890 |
self new testOpenSubKeyNamed_Wow64_64_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
891 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
892 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
893 |
"Created: / 07-12-2018 / 15:53:34 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
894 |
"Modified: / 12-02-2019 / 14:47:09 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
895 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
896 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
897 |
testOpenSubKeyNamed_Wow64_64_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
898 |
"Testing if an old subKey is opened in Wow64_64 (32bit program reading 64bit registry) via subKeyNamed:flags:" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
899 |
| windowsVersion readData testingRegistryPath readSubKeys subKeysCount | |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
900 |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
901 |
windowsVersion := Win32OperatingSystem registryEntry key: windowsDetailsRegistryPath. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
902 |
self skipIf: (windowsVersion valueNamed: 'BuildLabEx') isNil description: 'Skipping test the registry key does not exist. Happens in some ancient Windows (XP)'. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
903 |
self skipIf: ((windowsVersion valueNamed: 'BuildLabEx') includesString: 'x86') description: 'Skip test if on 32bit Windows (x86)'. "/ amd64 for x64 Windows |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
904 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
905 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
906 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
907 |
subKeysCount := readSubKeys size. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
908 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
909 |
self assert: subKeysCount = 3. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
910 |
"/ trying to read already existing subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
911 |
readData := testingRegistryPath subKeyNamed: ' ルすしか' flags: #KEY_WOW64_64KEY. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
912 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
913 |
"/ check if the existing |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
914 |
self assert: (readData path copyAfterLast: $\) = ' ルすしか'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
915 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
916 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
917 |
self run:#testOpenSubKeyNamed_Wow64_64_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
918 |
self new testOpenSubKeyNamed_Wow64_64_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
919 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
920 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
921 |
"Created: / 07-12-2018 / 15:55:07 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
922 |
"Modified: / 12-02-2019 / 14:47:13 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
923 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
924 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
925 |
testOpenSubKeyNamed_nonExistingWow64_32 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
926 |
"Trying to read non-existing subKey in Wow64_32 (32bit program reading 32bit registry)" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
927 |
| windowsVersion readData testingRegistryPath readSubKeys subKeysCount | |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
928 |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
929 |
windowsVersion := Win32OperatingSystem registryEntry key: windowsDetailsRegistryPath. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
930 |
self skipIf: (windowsVersion valueNamed: 'BuildLabEx') isNil description: 'Skipping test the registry key does not exist. Happens in some ancient Windows (XP)'. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
931 |
self skipIf: ((windowsVersion valueNamed: 'BuildLabEx') includesString: 'x86') description: 'Skip test if on 32bit Windows (x86)'. "/ amd64 for x64 Windows |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
932 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
933 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
934 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
935 |
subKeysCount := readSubKeys size. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
936 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
937 |
self assert: subKeysCount = 3. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
938 |
"/ trying to read non-existent subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
939 |
readData := testingRegistryPath subKeyNamed: 'bledesu ル' flags: #KEY_WOW64_32KEY createIfAbsent: false. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
940 |
"/ check if new path is with the subKeyNamed above |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
941 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
942 |
self assert: readData isNil |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
943 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
944 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
945 |
self run:#testOpenSubKeyNamed_nonExistingWow64_32 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
946 |
self new testOpenSubKeyNamed_nonExistingWow64_32 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
947 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
948 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
949 |
"Created: / 07-12-2018 / 15:44:52 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
950 |
"Modified: / 12-02-2019 / 14:47:17 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
951 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
952 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
953 |
testOpenSubKeyNamed_nonExistingWow64_64 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
954 |
"Trying to read non-existing subKey in Wow64_32 (32bit program reading 64bit registry)" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
955 |
| windowsVersion readData testingRegistryPath readSubKeys subKeysCount | |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
956 |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
957 |
windowsVersion := Win32OperatingSystem registryEntry key: windowsDetailsRegistryPath. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
958 |
self skipIf: (windowsVersion valueNamed: 'BuildLabEx') isNil description: 'Skipping test the registry key does not exist. Happens in some ancient Windows (XP)'. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
959 |
self skipIf: ((windowsVersion valueNamed: 'BuildLabEx') includesString: 'x86') description: 'Skip test if on 32bit Windows (x86)'. "/ amd64 for x64 Windows |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
960 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
961 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
962 |
readSubKeys := testingRegistryPath subKeys. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
963 |
subKeysCount := readSubKeys size. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
964 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
965 |
self assert: subKeysCount = 3. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
966 |
"/ trying to read non-existent subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
967 |
readData := testingRegistryPath subKeyNamed: 'bledesu ル' flags: #KEY_WOW64_64KEY createIfAbsent: false. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
968 |
"/ check if new path is with the subKeyNamed above |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
969 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
970 |
self assert: readData isNil |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
971 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
972 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
973 |
self run:#testOpenSubKeyNamed_nonExistingWow64_32 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
974 |
self new testOpenSubKeyNamed_nonExistingWow64_32 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
975 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
976 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
977 |
"Created: / 07-12-2018 / 15:45:42 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
978 |
"Modified: / 12-02-2019 / 14:47:21 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
979 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
980 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
981 |
testOpenSubKeyNamed_nonExisting_01 |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
982 |
"Trying to read non-existing subKey via subKeyNamed:flags:createIfAbsent:" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
983 |
| readData testingRegistryPath readSubKeys subKeysCount | |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
984 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
985 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
986 |
readSubKeys := testingRegistryPath subKeys. |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
987 |
subKeysCount := readSubKeys size. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
988 |
self assert: subKeysCount = 3. |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
989 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
990 |
"/ trying to read non-existent subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
991 |
readData := testingRegistryPath subKeyNamed: 'bledesu ル' flags: nil createIfAbsent: false. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
992 |
"/ check if new path is with the subKeyNamed above |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
993 |
self assert: readData isNil |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
994 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
995 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
996 |
self run:#testOpenSubKeyNamed_nonExisting_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
997 |
self new testOpenSubKeyNamed_nonExisting_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
998 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
999 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1000 |
"Created: / 07-12-2018 / 15:50:18 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1001 |
"Modified: / 12-02-2019 / 14:49:32 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1002 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1003 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1004 |
testOpenSubKeyNamed_nonExisting_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1005 |
"Trying to read non-existing subKey via subKeyNamed:" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1006 |
| readData testingRegistryPath readSubKeys subKeysCount | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1007 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1008 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1009 |
readSubKeys := testingRegistryPath subKeys. |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1010 |
subKeysCount := readSubKeys size. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1011 |
self assert: subKeysCount = 3. |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1012 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1013 |
"/ trying to read non-existent subKey |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1014 |
readData := testingRegistryPath subKeyNamed: 'bledesu ル'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1015 |
"/ check if new path is with the subKeyNamed above |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1016 |
self assert: readData isNil |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1017 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1018 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1019 |
self run:#testOpenSubKeyNamed_nonExisting_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1020 |
self new testOpenSubKeyNamed_nonExisting_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1021 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1022 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1023 |
"Created: / 07-12-2018 / 15:50:48 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1024 |
"Modified: / 12-02-2019 / 14:49:36 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1025 |
! ! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1026 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1027 |
!Win32OperatingSystemTest methodsFor:'tests-unicodeDelete'! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1028 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1029 |
testDeleteSubKeyNamed_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1030 |
"Testing deleting of empty subKey via deleteSubKeyNamed:" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1031 |
| returnValue testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1032 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1033 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1034 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1035 |
"/ if successfully deteted -> true |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1036 |
returnValue := testingRegistryPath deleteSubKeyNamed: ' ルすしか_empty'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1037 |
self assert: returnValue |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1038 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1039 |
" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1040 |
self run:#testDeleteSubKeyNamed_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1041 |
self new testDeleteSubKeyNamed_01 |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1042 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1043 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1044 |
"Created: / 30-01-2019 / 15:42:27 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1045 |
"Modified (format): / 01-02-2019 / 14:59:58 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1046 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1047 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1048 |
testDeleteSubKeyNamed_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1049 |
"Testing deleting of empty subKey via deleteSubKeyNamed:" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1050 |
| testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1051 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1052 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1053 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1054 |
self should: [ testingRegistryPath deleteSubKeyNamed: 11 ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1055 |
raise: Error |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1056 |
suchThat: [ :e | e messageText = 'subKeyString is not a string!!' ]. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1057 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1058 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1059 |
self run:#testDeleteSubKeyNamed_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1060 |
self new testDeleteSubKeyNamed_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1061 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1062 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1063 |
"Created: / 30-01-2019 / 15:42:01 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1064 |
"Modified (format): / 01-02-2019 / 15:00:13 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1065 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1066 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1067 |
testDeleteSubKeyNamed_Wow64_32 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1068 |
"Testing deleting of empty subKey via deleteSubKeyNamed: (only on x64 systems) |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1069 |
Wow subsystem enables running 32bit applications on 64bit windows" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1070 |
| windowsVersion returnValue testingRegistryPath | |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1071 |
|
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1072 |
windowsVersion := Win32OperatingSystem registryEntry key: windowsDetailsRegistryPath. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1073 |
self skipIf: (windowsVersion valueNamed: 'BuildLabEx') isNil description: 'Skipping test the registry key does not exist. Happens in some ancient Windows (XP)'. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1074 |
self skipIf: ((windowsVersion valueNamed: 'BuildLabEx') includesString: 'x86') description: 'Skip test if on 32bit Windows (x86)'. "/ amd64 for x64 Windows |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1075 |
|
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1076 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1077 |
"/ if successfully deteted -> true |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1078 |
returnValue := testingRegistryPath deleteSubKeyNamed: ' ルすしか_empty' flags:#KEY_WOW64_32KEY. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1079 |
self assert: returnValue |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1080 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1081 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1082 |
self run:#testDeleteSubKeyNamed_Wow64_32 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1083 |
self new testDeleteSubKeyNamed_Wow64_32 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1084 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1085 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1086 |
"Created: / 07-12-2018 / 14:56:39 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1087 |
"Modified: / 12-02-2019 / 14:47:25 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1088 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1089 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1090 |
testDeleteSubKeyNamed_Wow64_64 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1091 |
"Testing deleting of empty subKey via deleteSubKeyNamed: (only on x64 systems) |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1092 |
Wow subsystem enables running 32bit applications on 64bit windows" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1093 |
| windowsVersion returnValue testingRegistryPath | |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1094 |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1095 |
windowsVersion := Win32OperatingSystem registryEntry key: windowsDetailsRegistryPath. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1096 |
self skipIf: (windowsVersion valueNamed: 'BuildLabEx') isNil description: 'Skipping test the registry key does not exist. Happens in some ancient Windows (XP)'. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1097 |
self skipIf: ((windowsVersion valueNamed: 'BuildLabEx') includesString: 'x86') description: 'Skip test if on 32bit Windows (x86)'. "/ amd64 for x64 Windows |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1098 |
|
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1099 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1100 |
"/ if successfully deteted -> true |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1101 |
returnValue := testingRegistryPath deleteSubKeyNamed: ' ルすしか_empty' flags:#KEY_WOW64_64KEY. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1102 |
self assert: returnValue |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1103 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1104 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1105 |
self run:#testDeleteSubKeyNamed_Wow64_64 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1106 |
self new testDeleteSubKeyNamed_Wow64_64 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1107 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1108 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1109 |
"Created: / 07-12-2018 / 14:55:03 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1110 |
"Modified: / 12-02-2019 / 14:47:30 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1111 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1112 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1113 |
testDeleteValueNamed_REG_BINARY |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1114 |
"Testing if REG_BINARY value name is correctly deleted via deleteValueNamed:" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1115 |
| readData testingRegistryPath registryValueName deleteResult | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1116 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1117 |
testingRegistryPath := Win32OperatingSystem registryEntry key: (registryPath, '\', ' ルすしか'). |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1118 |
registryValueName := 'non-zero'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1119 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1120 |
readData := testingRegistryPath valueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1121 |
self assert: readData notEmptyOrNil. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1122 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1123 |
deleteResult := testingRegistryPath deleteValueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1124 |
self assert: deleteResult. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1125 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1126 |
readData := testingRegistryPath valueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1127 |
self assert: readData isEmptyOrNil |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1128 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1129 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1130 |
self run:#testDeleteValueNamed_REG_BINARY |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1131 |
self new testDeleteValueNamed_REG_BINARY |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1132 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1133 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1134 |
"Created: / 06-12-2018 / 13:56:35 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1135 |
"Modified: / 12-02-2019 / 14:49:58 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1136 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1137 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1138 |
testDeleteValueNamed_REG_DWORD |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1139 |
"Testing if REG_DWORD value name is correctly deleted via deleteValueNamed:" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1140 |
| readData testingRegistryPath registryValueName deleteResult | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1141 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1142 |
testingRegistryPath := Win32OperatingSystem registryEntry key: (registryPath, '\', ' ルすしか'). |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1143 |
registryValueName := 'dword_value'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1144 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1145 |
readData := testingRegistryPath valueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1146 |
self assert: readData notEmptyOrNil. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1147 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1148 |
deleteResult := testingRegistryPath deleteValueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1149 |
self assert: deleteResult. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1150 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1151 |
readData := testingRegistryPath valueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1152 |
self assert: readData isEmptyOrNil |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1153 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1154 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1155 |
self run:#testDeleteValueNamed_REG_DWORD |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1156 |
self new testDeleteValueNamed_REG_DWORD |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1157 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1158 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1159 |
"Created: / 06-12-2018 / 09:09:24 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1160 |
"Modified: / 12-02-2019 / 14:50:03 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1161 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1162 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1163 |
testDeleteValueNamed_REG_EXPAND_SZ |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1164 |
"Testing if REG_EXPAND_SZ value name is correctly deleted via deleteValueNamed:" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1165 |
| readData testingRegistryPath registryValueName deleteResult | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1166 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1167 |
testingRegistryPath := Win32OperatingSystem registryEntry key: (registryPath, '\', ' ルすしか'). |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1168 |
registryValueName := ' č ルすしか'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1169 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1170 |
readData := testingRegistryPath valueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1171 |
self assert: readData notEmptyOrNil. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1172 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1173 |
deleteResult := testingRegistryPath deleteValueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1174 |
self assert: deleteResult. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1175 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1176 |
readData := testingRegistryPath valueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1177 |
self assert: readData isEmptyOrNil |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1178 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1179 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1180 |
self run:#testDeleteValueNamed_REG_EXPAND_SZ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1181 |
self new testDeleteValueNamed_REG_EXPAND_SZ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1182 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1183 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1184 |
"Created: / 06-12-2018 / 13:54:53 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1185 |
"Modified: / 12-02-2019 / 14:50:06 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1186 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1187 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1188 |
testDeleteValueNamed_REG_QWORD |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1189 |
"Testing if REG_QWORD value name is correctly deleted via deleteValueNamed:" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1190 |
| readData testingRegistryPath registryValueName deleteResult | |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1191 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1192 |
testingRegistryPath := Win32OperatingSystem registryEntry key: (registryPath, '\', ' ルすしか'). |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1193 |
registryValueName := 'qword_max'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1194 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1195 |
readData := testingRegistryPath valueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1196 |
self assert: readData notEmptyOrNil. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1197 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1198 |
deleteResult := testingRegistryPath deleteValueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1199 |
self assert: deleteResult. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1200 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1201 |
readData := testingRegistryPath valueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1202 |
self assert: readData isEmptyOrNil |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1203 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1204 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1205 |
self run:#testDeleteValueNamed_REG_QWORD |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1206 |
self new testDeleteValueNamed_REG_QWORD |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1207 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1208 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1209 |
"Created: / 06-12-2018 / 13:55:46 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1210 |
"Modified: / 11-02-2019 / 13:56:54 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1211 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1212 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1213 |
testDeleteValueNamed_REG_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1214 |
"Testing if REG_SZ value name is correctly deleted via deleteValueNamed:" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1215 |
| readData testingRegistryPath registryValueName deleteResult | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1216 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1217 |
testingRegistryPath := Win32OperatingSystem registryEntry key: (registryPath, '\', ' ルすしか'). |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1218 |
registryValueName := ' ř ž č ル. '. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1219 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1220 |
readData := testingRegistryPath valueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1221 |
self assert: readData notEmptyOrNil. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1222 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1223 |
deleteResult := testingRegistryPath deleteValueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1224 |
self assert: deleteResult. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1225 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1226 |
readData := testingRegistryPath valueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1227 |
self assert: readData isEmptyOrNil |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1228 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1229 |
" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1230 |
self run:#testDeleteValueNamed_REG_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1231 |
self new testDeleteValueNamed_REG_SZ_01 |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1232 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1233 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1234 |
"Created: / 30-01-2019 / 15:23:27 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1235 |
"Modified: / 12-02-2019 / 14:50:11 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1236 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1237 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1238 |
testDeleteValueNamed_REG_SZ_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1239 |
"Testing if REG_SZ value name is correctly deleted via deleteValueNamed:" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1240 |
| readData testingRegistryPath registryValueName | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1241 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1242 |
testingRegistryPath := Win32OperatingSystem registryEntry key: (registryPath, '\', ' ルすしか'). |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1243 |
registryValueName := ' ř ž č ル. '. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1244 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1245 |
readData := testingRegistryPath valueNamed: registryValueName. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1246 |
self assert: readData notEmptyOrNil. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1247 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1248 |
self should: [ testingRegistryPath deleteValueNamed: 88 ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1249 |
raise: Error |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1250 |
suchThat: [ :e | e messageText = 'nameString is not a string!!' ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1251 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1252 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1253 |
self run:#testDeleteValueNamed_REG_SZ_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1254 |
self new testDeleteValueNamed_REG_SZ_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1255 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1256 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1257 |
"Created: / 30-01-2019 / 15:23:10 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1258 |
"Modified: / 12-02-2019 / 14:50:15 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1259 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1260 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1261 |
testDeleteValueNamed_defaultValue_01 |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1262 |
"Testing if (Default) value gets correctly deleted via deleteValueNamed:" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1263 |
| readData registryValueName testingRegistryPath deleteResult| |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1264 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1265 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1266 |
registryValueName := ''. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1267 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1268 |
readData := testingRegistryPath valueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1269 |
self assert: readData notEmptyOrNil. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1270 |
self assert: readData = 'しか OMG'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1271 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1272 |
deleteResult := testingRegistryPath deleteValueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1273 |
self assert: deleteResult. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1274 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1275 |
readData := testingRegistryPath valueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1276 |
self assert: readData isEmptyOrNil |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1277 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1278 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1279 |
self run:#testDeleteValueNamed_defaultValue_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1280 |
self new testDeleteValueNamed_defaultValue_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1281 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1282 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1283 |
"Created: / 06-12-2018 / 14:04:16 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1284 |
"Modified: / 12-02-2019 / 14:50:19 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1285 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1286 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1287 |
testDeleteValueNamed_defaultValue_02 |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1288 |
"Testing if deleting (Default) empty gets false via deleteValueNamed:" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1289 |
| readData registryValueName testingRegistryPath deleteResult| |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1290 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1291 |
testingRegistryPath := Win32OperatingSystem registryEntry key: (registryPath, '\', ' ルすしか'). |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1292 |
registryValueName := ''. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1293 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1294 |
readData := testingRegistryPath valueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1295 |
self assert: readData isEmptyOrNil. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1296 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1297 |
deleteResult := testingRegistryPath deleteValueNamed: registryValueName. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1298 |
self assert: deleteResult not. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1299 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1300 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1301 |
self run:#testDeleteValueNamed_defaultValue_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1302 |
self new testDeleteValueNamed_defaultValue_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1303 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1304 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1305 |
"Created: / 06-12-2018 / 14:01:38 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1306 |
"Modified: / 12-02-2019 / 14:50:22 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1307 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1308 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1309 |
testDeleteValueNamed_nonStringValue |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1310 |
"Testing if trying to delete a key with non-string name raises an error" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1311 |
| testingRegistryPath registryValueName | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1312 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1313 |
testingRegistryPath := Win32OperatingSystem registryEntry key: (registryPath, '\', ' ルすしか'). |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1314 |
registryValueName := 11. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1315 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1316 |
self should: [ testingRegistryPath deleteValueNamed: registryValueName ] raise: Error |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1317 |
suchThat: [ :e | e messageText = 'nameString is not a string!!' ] |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1318 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1319 |
" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1320 |
self run:#testDeleteValueNamed_nonStringValue |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1321 |
self new testDeleteValueNamed_nonStringValue |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1322 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1323 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1324 |
"Created: / 01-02-2019 / 15:02:57 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1325 |
! ! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1326 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1327 |
!Win32OperatingSystemTest methodsFor:'tests-unicodeDeleteEnumeration'! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1328 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1329 |
testDeleteSubKeyNamed_deletingMultipleSubKeys |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1330 |
"Testing deleting whole tree of subKeys based on subKey path size via deleteSubKeyNamed:" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1331 |
| readData returnValue testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1332 |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1333 |
readData := OrderedDictionary new. |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1334 |
testingRegistryPath := Win32OperatingSystem registryEntry key: (registryPath, '\', ' ルすしか_testing_delete'). |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1335 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1336 |
testingRegistryPath allSubKeysDo: [ :subEntry | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1337 |
readData at: subEntry path put: subEntry |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1338 |
]. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1339 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1340 |
"/ sorting based on path size |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1341 |
readData sort: [ :firstRegistryPath :secondRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1342 |
firstRegistryPath size < secondRegistryPath size |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1343 |
]. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1344 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1345 |
"/ sorting the path size (max -> min) |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1346 |
readData reverse. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1347 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1348 |
"/ deleting all the subKeys (even those that have some value names!!) |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1349 |
readData valuesDo: [ :registryEntry | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1350 |
| tempRegistryEntry | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1351 |
tempRegistryEntry := Win32OperatingSystem registryEntry key: (registryEntry path copyUpToLast: $\). |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1352 |
returnValue := tempRegistryEntry deleteSubKeyNamed: (registryEntry path copyAfterLast: $\). |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1353 |
self assert: returnValue |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1354 |
]. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1355 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1356 |
"/ if successfully deteted -> true |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1357 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1358 |
returnValue := testingRegistryPath deleteSubKeyNamed: ' ルすしか_testing_delete'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1359 |
self assert: returnValue |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1360 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1361 |
" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1362 |
self run:#testDeleteSubKeyNamed_deletingMultipleSubKeys |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1363 |
self new testDeleteSubKeyNamed_deletingMultipleSubKeys |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1364 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1365 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1366 |
"Created: / 07-12-2018 / 10:54:34 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1367 |
"Modified: / 12-02-2019 / 14:50:55 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1368 |
! ! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
1369 |
|
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1370 |
!Win32OperatingSystemTest methodsFor:'tests-unicodeRead'! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1371 |
|
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1372 |
testReadSubKeyAtIndex_01 |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1373 |
"Reading subKeys at certain index |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1374 |
WARNING: subKeyAtIndex: is zero based!!!!!!" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1375 |
| readData testingRegistryPath | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1376 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1377 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1378 |
readData := testingRegistryPath subKeyAtIndex: 0. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1379 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1380 |
self assert: readData notEmptyOrNil. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1381 |
self assert: (readData path copyAfterLast: $\) = ' ルすしか' |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1382 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1383 |
" |
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1384 |
self run:#testReadSubKeyAtIndex_01 |
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1385 |
self new testReadSubKeyAtIndex_01 |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1386 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1387 |
|
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1388 |
"Created: / 11-12-2018 / 14:51:12 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1389 |
"Modified (format): / 12-02-2019 / 14:51:43 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1390 |
! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1391 |
|
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1392 |
testReadSubKeyAtIndex_02 |
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1393 |
"Reading subKeys at certain index - reading non-existent subKey |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1394 |
WARNING: subKeyAtIndex: is zero based!!!!!!" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1395 |
| readData testingRegistryPath | |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1396 |
|
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1397 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1398 |
readData := testingRegistryPath subKeyAtIndex: 10. |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1399 |
|
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1400 |
self assert: readData isNil |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1401 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1402 |
" |
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1403 |
self run:#testReadSubKeyAtIndex_02 |
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1404 |
self new testReadSubKeyAtIndex_02 |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1405 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1406 |
|
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1407 |
"Created: / 11-12-2018 / 14:49:03 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1408 |
"Modified (format): / 12-02-2019 / 14:51:39 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1409 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1410 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1411 |
testReadSubKeyAtIndex_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1412 |
"Reading subKeys via a String - should raise an error" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1413 |
| testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1414 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1415 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1416 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1417 |
self should: [ testingRegistryPath subKeyAtIndex: 'keyName' ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1418 |
raise: Error |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1419 |
suchThat: [ :e | e messageText = 'subKeyIndex is not an integer!!' ]. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1420 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1421 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1422 |
self run:#testReadSubKeyAtIndex_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1423 |
self new testReadSubKeyAtIndex_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1424 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1425 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1426 |
"Created: / 01-02-2019 / 15:45:35 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1427 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1428 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1429 |
testReadSubKeyAtIndex_04 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1430 |
"Reading subKeys via a Float - should raise an error" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1431 |
| testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1432 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1433 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1434 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1435 |
self should: [ testingRegistryPath subKeyAtIndex: 1.1 ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1436 |
raise: Error |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1437 |
suchThat: [ :e | e messageText = 'subKeyIndex is not an integer!!' ]. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1438 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1439 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1440 |
self run:#testReadSubKeyAtIndex_04 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1441 |
self new testReadSubKeyAtIndex_04 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1442 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1443 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1444 |
"Created: / 01-02-2019 / 15:48:14 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1445 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1446 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1447 |
testReadSubKeyAtIndex_MaxPath |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1448 |
"Reading subKeyAtIndex with max Path |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1449 |
Note: This test acually breaks the limit that Microsoft specified in MSDN - registry key name should be maximum 255 characters including absolute path |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1450 |
MSDN link: https://docs.microsoft.com/en-us/windows/desktop/sysinfo/registry-element-size-limits" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1451 |
| readData testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1452 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1453 |
testingRegistryPath := Win32OperatingSystem registryEntry key: |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1454 |
(registryPath,'\', ' ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end'). |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1455 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1456 |
readData := testingRegistryPath subKeyAtIndex: 0. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1457 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1458 |
self assert: readData path notEmptyOrNil. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1459 |
self assert:(readData path endsWith: '|end'). |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1460 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1461 |
"/ this is maximum path size which can be reached if the SubKey is reached via index |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1462 |
self assert: readData path size = 563. "/ there is one backslash (for path) more compared to testReadSubKeyNamesAndClassesAtIndex_MaxPath_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1463 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1464 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1465 |
self run:#testReadSubKeyAtIndex_MaxPath |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1466 |
self new testReadSubKeyAtIndex_MaxPath |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1467 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1468 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1469 |
"Created: / 05-12-2018 / 12:39:54 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1470 |
"Modified (format): / 12-02-2019 / 14:51:51 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1471 |
! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1472 |
|
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1473 |
testReadSubKeyNamesAndClassesAtIndex_01 |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1474 |
"Reading SubKeyNamesAndClasses - reading non-existent subKey" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1475 |
| readData testingRegistryPath | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1476 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1477 |
testingRegistryPath := Win32OperatingSystem registryEntry key: |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1478 |
(registryPath,'\', ' ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end'). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1479 |
|
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1480 |
readData := testingRegistryPath subKeyNameAndClassAtIndex: 10. |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1481 |
|
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1482 |
self assert: readData isNil. |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1483 |
" |
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1484 |
self run:#testReadSubKeyNamesAndClassesAtIndex_01 |
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1485 |
self new testReadSubKeyNamesAndClassesAtIndex_01 |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1486 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1487 |
|
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1488 |
"Created: / 11-12-2018 / 14:49:48 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1489 |
"Modified: / 12-02-2019 / 14:51:56 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1490 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1491 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1492 |
testReadSubKeyNamesAndClassesAtIndex_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1493 |
"Reading SubKeyNamesAndClasses via String - should raise an error" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1494 |
| testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1495 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1496 |
testingRegistryPath := Win32OperatingSystem registryEntry key: |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1497 |
(registryPath,'\', ' ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end'). |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1498 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1499 |
self should: [ testingRegistryPath subKeyNameAndClassAtIndex: 'asString' ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1500 |
raise: Error |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1501 |
suchThat: [ :e | e messageText = 'subKeyIndex is not an integer!!' ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1502 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1503 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1504 |
self run:#testReadSubKeyNamesAndClassesAtIndex_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1505 |
self new testReadSubKeyNamesAndClassesAtIndex_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1506 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1507 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1508 |
"Created: / 01-02-2019 / 15:48:02 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1509 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1510 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1511 |
testReadSubKeyNamesAndClassesAtIndex_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1512 |
"Reading SubKeyNamesAndClasses via Float - should raise an error" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1513 |
| testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1514 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1515 |
testingRegistryPath := Win32OperatingSystem registryEntry key: |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1516 |
(registryPath,'\', ' ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end'). |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1517 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1518 |
self should: [ testingRegistryPath subKeyNameAndClassAtIndex: 1.1 ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1519 |
raise: Error |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1520 |
suchThat: [ :e | e messageText = 'subKeyIndex is not an integer!!' ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1521 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1522 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1523 |
self run:#testReadSubKeyNamesAndClassesAtIndex_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1524 |
self new testReadSubKeyNamesAndClassesAtIndex_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1525 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1526 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1527 |
"Created: / 01-02-2019 / 15:51:03 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1528 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1529 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1530 |
testReadSubKeyNamesAndClassesAtIndex_MaxPath |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1531 |
"Reading SubKeyNamesAndClasses with max Path |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1532 |
Note: This test acually breaks the limit that Microsoft specified in MSDN - registry key name should be maximum 255 characters including absolute path |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1533 |
MSDN link: https://docs.microsoft.com/en-us/windows/desktop/sysinfo/registry-element-size-limits" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1534 |
| readData testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1535 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1536 |
testingRegistryPath := Win32OperatingSystem registryEntry key: |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1537 |
(registryPath,'\', ' ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end'). |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1538 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1539 |
readData := testingRegistryPath subKeyNameAndClassAtIndex: 0. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1540 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1541 |
self assert: readData notEmptyOrNil. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1542 |
self assert:(readData first endsWith: '|end'). |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1543 |
self assert: readData first = '256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1544 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1545 |
"/ this is maximum path size which can be reached if the SubKey is reached via index |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1546 |
self assert: (testingRegistryPath path size + readData first size) = 562. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1547 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1548 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1549 |
self run:#testReadSubKeyNamesAndClassesAtIndex_MaxPath |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1550 |
self new testReadSubKeyNamesAndClassesAtIndex_MaxPath |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1551 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1552 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1553 |
"Created: / 05-12-2018 / 12:40:08 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1554 |
"Modified: / 12-02-2019 / 14:52:06 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1555 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1556 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1557 |
testReadTooLongPath |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1558 |
"Trying to read too long path - nil is returned" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1559 |
| testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1560 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1561 |
testingRegistryPath := Win32OperatingSystem registryEntry key: |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1562 |
(registryPath,'\', ' ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1563 |
|end','\','256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end'). |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1564 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1565 |
self assert: testingRegistryPath isNil |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1566 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1567 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1568 |
self run:#testReadTooLongPath |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1569 |
self new testReadTooLongPath |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1570 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1571 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1572 |
"Created: / 22-11-2018 / 11:19:51 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1573 |
"Modified (comment): / 01-02-2019 / 14:58:15 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1574 |
! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1575 |
|
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1576 |
testReadValueNameAtIndex_01 |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1577 |
"Reading values (#valueNameAtIndex:) at certain index |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1578 |
WARNING: #valueNameAtIndex: is zero based!!!!!! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1579 |
Note: This test acually breaks the limit that Microsoft specified in MSDN - registry key name should be maximum 255 characters including absolute path |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1580 |
MSDN link: https://docs.microsoft.com/en-us/windows/desktop/sysinfo/registry-element-size-limits" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1581 |
| readData testingRegistryPath | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1582 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1583 |
testingRegistryPath := Win32OperatingSystem registryEntry key: (registryPath,'\', ' ルすしか'). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1584 |
readData := testingRegistryPath valueNameAtIndex: 1. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1585 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1586 |
self assert: readData notEmptyOrNil. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1587 |
self assert: readData = 'しかき ' |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1588 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1589 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1590 |
self run:#testReadValueNameAtIndex |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1591 |
self new testReadValueNameAtIndex |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1592 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1593 |
|
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1594 |
"Created: / 11-12-2018 / 14:54:37 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1595 |
"Modified: / 12-02-2019 / 14:52:19 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1596 |
! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1597 |
|
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1598 |
testReadValueNameAtIndex_02 |
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1599 |
"Reading values (#valueNameAtIndex:) at certain index - non-existent value" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1600 |
| readData testingRegistryPath | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1601 |
|
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1602 |
testingRegistryPath := Win32OperatingSystem registryEntry key: (registryPath,'\', ' ルすしか'). |
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1603 |
readData := testingRegistryPath valueNameAtIndex: 100. |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1604 |
|
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1605 |
self assert: readData isNil |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1606 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1607 |
" |
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1608 |
self run:#testReadValueNameAtIndex_02 |
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1609 |
self new testReadValueNameAtIndex_02 |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1610 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
1611 |
|
2080
a27e62ccfc44
Issue #250: Adding tests for index methods where the index is trying to get non-existent value/subKey -> nil is returned
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2079
diff
changeset
|
1612 |
"Created: / 11-12-2018 / 14:54:29 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1613 |
"Modified: / 12-02-2019 / 14:52:25 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1614 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1615 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1616 |
testReadValueNameAtIndex_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1617 |
"Reading values (#valueNameAtIndex:) via String - should raise an error" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1618 |
| testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1619 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1620 |
testingRegistryPath := Win32OperatingSystem registryEntry key: (registryPath,'\', ' ルすしか'). |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1621 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1622 |
self should: [ testingRegistryPath valueNameAtIndex: 'stringInsteadOfIndex' ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1623 |
raise: Error |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1624 |
suchThat: [ :e | e messageText = 'valueIndex is not an integer!!' ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1625 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1626 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1627 |
self run:#testReadValueNameAtIndex_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1628 |
self new testReadValueNameAtIndex_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1629 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1630 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1631 |
"Created: / 01-02-2019 / 15:52:27 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1632 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1633 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1634 |
testReadValueNameAtIndex_04 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1635 |
"Reading values (#valueNameAtIndex:) via Float - should raise an error" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1636 |
| testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1637 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1638 |
testingRegistryPath := Win32OperatingSystem registryEntry key: (registryPath,'\', ' ルすしか'). |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1639 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1640 |
self should: [ testingRegistryPath valueNameAtIndex: 1.1 ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1641 |
raise: Error |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1642 |
suchThat: [ :e | e messageText = 'valueIndex is not an integer!!' ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1643 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1644 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1645 |
self run:#testReadValueNameAtIndex_04 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1646 |
self new testReadValueNameAtIndex_04 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1647 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1648 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1649 |
"Created: / 01-02-2019 / 15:55:03 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1650 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1651 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1652 |
testReadValueNamed_REG_BINARY_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1653 |
"Testing if REG_BINARY values are read correctly via valueNamed:" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1654 |
| readData testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1655 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1656 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1657 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1658 |
readData := testingRegistryPath valueNamed: 'zero'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1659 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1660 |
self assert: readData = ByteArray new. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1661 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1662 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1663 |
self run:#testReadValueNamed_REG_BINARY_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1664 |
self new testReadValueNamed_REG_BINARY_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1665 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1666 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1667 |
"Created: / 16-11-2018 / 12:37:50 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1668 |
"Modified (format): / 01-02-2019 / 13:28:15 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1669 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1670 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1671 |
testReadValueNamed_REG_BINARY_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1672 |
"Testing if REG_BINARY values are read correctly via valueNamed:" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1673 |
| testingRegistryPath readData readDataHex | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1674 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1675 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1676 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1677 |
readData := testingRegistryPath valueNamed: 'non-zero'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1678 |
readDataHex := readData hexPrintStringWithSeparator: $|. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1679 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1680 |
self assert: readData = #[17 16]. "/ ByteArray |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1681 |
self assert: readDataHex = '11|10' "/ hex |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1682 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1683 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1684 |
self run:#testReadValueNamed_REG_BINARY_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1685 |
self new testReadValueNamed_REG_BINARY_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1686 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1687 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1688 |
"Created: / 16-11-2018 / 12:39:33 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1689 |
"Modified (format): / 01-02-2019 / 13:28:21 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1690 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1691 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1692 |
testReadValueNamed_REG_DWORD_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1693 |
"Testing if REG_DWORD values are read correctly via valueNamed:" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1694 |
| readData testingRegistryPath | |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1695 |
|
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1696 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1697 |
readData := testingRegistryPath valueNamed: 'dword_value'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1698 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1699 |
self assert: readData = 9135. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1700 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1701 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1702 |
self run:#testReadValueNamed_REG_DWORD_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1703 |
self new testReadValueNamed_REG_DWORD_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1704 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1705 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1706 |
"Created: / 16-11-2018 / 12:24:26 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1707 |
"Modified: / 12-02-2019 / 14:52:58 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1708 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1709 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1710 |
testReadValueNamed_REG_DWORD_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1711 |
"Testing if REG_DWORD values are read correctly via valueNamed:" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1712 |
| readData testingRegistryPath | |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1713 |
|
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1714 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1715 |
readData := testingRegistryPath valueNamed: 'き'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1716 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1717 |
self assert: readData = 591541423. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1718 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1719 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1720 |
self run:#testReadValueNamed_REG_DWORD_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1721 |
self new testReadValueNamed_REG_DWORD_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1722 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1723 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1724 |
"Created: / 16-11-2018 / 12:24:43 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1725 |
"Modified: / 12-02-2019 / 14:53:05 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1726 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1727 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1728 |
testReadValueNamed_REG_EXPAND_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1729 |
"Testing if REG_EXPAND_SZ values are read correctly via valueNamed:" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1730 |
| readData testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1731 |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1732 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1733 |
readData := testingRegistryPath valueNamed: ' č ルすしか'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1734 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1735 |
self assert: readData = '''Testing Unicode chars ř ž č ルすしかき''). '. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1736 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1737 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1738 |
self run:#testReadValueNamed_REG_EXPAND_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1739 |
self new testReadValueNamed_REG_EXPAND_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1740 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1741 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1742 |
"Created: / 16-11-2018 / 12:27:58 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1743 |
"Modified: / 12-02-2019 / 14:53:11 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1744 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1745 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1746 |
testReadValueNamed_REG_EXPAND_SZ_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1747 |
"Testing if REG_EXPAND_SZ values are read correctly via valueNamed:" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1748 |
| readData testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1749 |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1750 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1751 |
readData := testingRegistryPath valueNamed: 'Ugh'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1752 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1753 |
self assert: readData = '''Testing Unicode chars ř ž č ルすしかき''). '. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1754 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1755 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1756 |
self run:#testReadValueNamed_REG_EXPAND_SZ_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1757 |
self new testReadValueNamed_REG_EXPAND_SZ_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1758 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1759 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1760 |
"Created: / 16-11-2018 / 12:29:52 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1761 |
"Modified: / 12-02-2019 / 14:53:16 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1762 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1763 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1764 |
testReadValueNamed_REG_MULTI_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1765 |
"Testing if REG_MULTI_SZ values are read correctly via valueNamed:" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1766 |
| readData testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1767 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1768 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1769 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1770 |
readData := testingRegistryPath valueNamed: 'Font_Leelawadee UI Bold'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1771 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1772 |
self assert: readData = #('SEGOEUIB.TTF,Segoe UI Bold,110,82' 'SEGOEUIB.TTF,Segoe UI Bold' 'MEIRYOB.TTC,Meiryo UI Bold,120,96' |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1773 |
'MEIRYOB.TTC,Meiryo UI Bold' 'MSJHBD.TTC,Microsoft JhengHei UI Bold,120,96' 'MSJHBD.TTC,Microsoft JhengHei UI Bold' |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1774 |
'MSYHBD.TTC,Microsoft YaHei UI Bold,128,96' 'MSYHBD.TTC,Microsoft YaHei UI Bold' 'MALGUNBD.TTF,Malgun Gothic Bold,118,96' |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1775 |
'MALGUNBD.TTF,Malgun Gothic Bold' 'YUGOTHB.TTC,Yu Gothic UI Bold,128,96' 'YUGOTHB.TTC,Yu Gothic UI Bold' 'SEGUISYM.TTF,Segoe UI Symbol') |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1776 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1777 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1778 |
self run:#testReadValueNamed_REG_MULTI_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1779 |
self new testReadValueNamed_REG_MULTI_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1780 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1781 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1782 |
"Created: / 16-11-2018 / 12:30:24 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1783 |
"Modified (format): / 01-02-2019 / 13:28:46 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1784 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1785 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1786 |
testReadValueNamed_REG_MULTI_SZ_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1787 |
"Testing if REG_MULTI_SZ values are read correctly via valueNamed:" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1788 |
| readData testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1789 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1790 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1791 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1792 |
readData := testingRegistryPath valueNamed: 'ř ž č ルすしか'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1793 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1794 |
self assert: readData = #('''Testing Unicode chars ř ž č ルすしかき'')' |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1795 |
'SEGOEUIB.TTF,Segoe UI Bold,110,82' 'SEGOEUIB.TTF,Segoe UI Bold' 'MEIRYOB.TTC,Meiryo UI Bold,120,96' |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1796 |
'MEIRYOB.TTC,Meiryo UI Bold' 'MSJHBD.TTC,Microsoft JhengHei UI Bold,120,96' 'MSJHBD.TTC,Microsoft JhengHei UI Bold' |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1797 |
'MSYHBD.TTC,Microsoft YaHei UI Bold,128,96' 'MSYHBD.TTC,Microsoft YaHei UI Bold' 'MALGUNBD.TTF,Malgun Gothic Bold,118,96' |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1798 |
'MALGUNBD.TTF,Malgun Gothic Bold' 'YUGOTHB.TTC,Yu Gothic UI Bold,128,96' 'YUGOTHB.TTC,Yu Gothic UI Bold' 'SEGUISYM.TTF,Segoe UI Symbol') |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1799 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1800 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1801 |
self run:#testReadValueNamed_REG_MULTI_SZ_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1802 |
self new testReadValueNamed_REG_MULTI_SZ_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1803 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1804 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1805 |
"Created: / 16-11-2018 / 12:35:57 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1806 |
"Modified (format): / 01-02-2019 / 13:28:52 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1807 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1808 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1809 |
testReadValueNamed_REG_MULTI_SZ_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1810 |
"Testing if empty REG_MULTI_SZ value is read correctly via valueNamed:" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1811 |
| readData testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1812 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1813 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1814 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1815 |
readData := testingRegistryPath valueNamed: 'testEmptyMultiSZ'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1816 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1817 |
self assert: readData isEmpty |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1818 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1819 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1820 |
self run:#testReadValueNamed_REG_MULTI_SZ_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1821 |
self new testReadValueNamed_REG_MULTI_SZ_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1822 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1823 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1824 |
"Created: / 03-12-2018 / 10:59:48 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1825 |
"Modified (format): / 01-02-2019 / 13:28:58 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1826 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1827 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1828 |
testReadValueNamed_REG_QWORD_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1829 |
"Testing if REG_QWORD values are read correctly via valueNamed:. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1830 |
The read value is a QWORD maximum value" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1831 |
| readData testingRegistryPath | |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1832 |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1833 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1834 |
readData := testingRegistryPath valueNamed: 'qword_max'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1835 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1836 |
self assert: readData = 18446744073709551615. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1837 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1838 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1839 |
self run:#testReadValueNamed_REG_QWORD_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1840 |
self new testReadValueNamed_REG_QWORD_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1841 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1842 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1843 |
"Created: / 16-11-2018 / 12:25:47 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1844 |
"Modified: / 11-02-2019 / 13:46:18 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1845 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1846 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1847 |
testReadValueNamed_REG_QWORD_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1848 |
"Testing if REG_QWORD values are read correctly via valueNamed:" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1849 |
| readData testingRegistryPath | |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1850 |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1851 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1852 |
readData := testingRegistryPath valueNamed: 'qwordvalue'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1853 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1854 |
self assert: readData = 8751636011737964973. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1855 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1856 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1857 |
self run:#testReadValueNamed_REG_QWORD_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1858 |
self new testReadValueNamed_REG_QWORD_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1859 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1860 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1861 |
"Created: / 16-11-2018 / 12:26:23 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1862 |
"Modified: / 11-02-2019 / 13:46:07 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1863 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1864 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1865 |
testReadValueNamed_REG_QWORD_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1866 |
"Testing if REG_QWORD values are read correctly via valueNamed:" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1867 |
| readData testingRegistryPath | |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1868 |
|
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1869 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1870 |
readData := testingRegistryPath valueNamed: 'すし'. |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1871 |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1872 |
"/ normalize if LargeInteger |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1873 |
readData class == LargeInteger ifTrue: [ |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1874 |
readData := readData copy compressed |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1875 |
]. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1876 |
|
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1877 |
self assert: readData = 44527. |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1878 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1879 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1880 |
self run:#testReadValueNamed_REG_QWORD_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1881 |
self new testReadValueNamed_REG_QWORD_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1882 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1883 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1884 |
"Created: / 16-11-2018 / 12:27:17 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1885 |
"Modified (format): / 11-02-2019 / 14:17:28 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1886 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1887 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1888 |
testReadValueNamed_REG_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1889 |
"Testing if REG_SZ values are read correctly via valueNamed:" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1890 |
| readData testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1891 |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1892 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1893 |
readData := testingRegistryPath valueNamed: 'bledesu'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1894 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1895 |
self assert: readData = '''Testing Unicode chars ř ž č ルすしかき''). '. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1896 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1897 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1898 |
self run:#testReadValueNamed_REG_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1899 |
self new testReadValueNamed_REG_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1900 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1901 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1902 |
"Created: / 16-11-2018 / 12:14:59 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1903 |
"Modified: / 12-02-2019 / 14:53:38 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1904 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1905 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1906 |
testReadValueNamed_REG_SZ_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1907 |
"Testing if REG_SZ values are read correctly via valueNamed:" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1908 |
| readData testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1909 |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1910 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1911 |
readData := testingRegistryPath valueNamed: ' ř ž č ル. '. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1912 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1913 |
self assert: readData = 'Testing Unicode chars ř ž č ルすしかき'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1914 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1915 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1916 |
self run:#testReadValueNamed_REG_SZ_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1917 |
self new testReadValueNamed_REG_SZ_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1918 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1919 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1920 |
"Created: / 16-11-2018 / 12:15:17 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1921 |
"Modified: / 12-02-2019 / 14:53:44 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1922 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1923 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1924 |
testReadValueNamed_REG_SZ_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1925 |
"Testing if REG_SZ values are read correctly via valueNamed:" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1926 |
| readData testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1927 |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1928 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1929 |
readData := testingRegistryPath valueNamed: 'しかき '. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1930 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1931 |
self assert: readData = 'Testus gradus'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1932 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1933 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1934 |
self run:#testReadValueNamed_REG_SZ_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1935 |
self new testReadValueNamed_REG_SZ_03 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1936 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1937 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1938 |
"Created: / 16-11-2018 / 12:21:59 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1939 |
"Modified: / 12-02-2019 / 14:53:51 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1940 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1941 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1942 |
testReadValueNamed_REG_SZ_04 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1943 |
"Testing if empty REG_SZ value is read correctly via valueNamed:" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1944 |
| readData testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1945 |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1946 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1947 |
readData := testingRegistryPath valueNamed: 'emptyToTest'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1948 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1949 |
self assert: readData isEmpty. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1950 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1951 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1952 |
self run:#testReadValueNamed_REG_SZ_04 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1953 |
self new testReadValueNamed_REG_SZ_04 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1954 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1955 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1956 |
"Created: / 03-12-2018 / 10:56:11 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
1957 |
"Modified: / 12-02-2019 / 14:53:56 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1958 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1959 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1960 |
testReadValueNamed_nonStringValue |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1961 |
"Testing reading non-string value from Registry via valueNamed raises an error" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1962 |
| testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1963 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1964 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1965 |
self should: [ testingRegistryPath valueNamed: 11 ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1966 |
raise: Error |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1967 |
suchThat: [ :e | e messageText = 'nameString is not a string!!' ]. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1968 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1969 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1970 |
self run:#testReadValueNamed_nonStringValue |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1971 |
self new testReadValueNamed_nonStringValue |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1972 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1973 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1974 |
"Created: / 05-12-2018 / 12:40:31 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1975 |
"Modified (format): / 30-01-2019 / 15:30:21 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1976 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1977 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1978 |
testValueTypeAndSize_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1979 |
"Testing if an error is returned when number is used instead of string as method parammeter at valueTypeAndSize:" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1980 |
| testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1981 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1982 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1983 |
self should: [ testingRegistryPath valueTypeAndSize: 55 ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1984 |
raise: Error |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1985 |
suchThat: [ :e | e messageText = 'nameString is not a string!!' ]. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1986 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1987 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1988 |
self run:#testValueTypeAndSize_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1989 |
self new testValueTypeAndSize_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1990 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1991 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1992 |
"Created: / 30-01-2019 / 17:15:49 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1993 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1994 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1995 |
testValueTypeAndSize_REG_BINARY_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1996 |
"Testing if #REG_BINARY type returns correct size in bytes" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1997 |
| testingRegistryPath readData testingData | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1998 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
1999 |
testingData := Dictionary new. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2000 |
testingData at: #'REG_BINARY' put: 2. "/ [bytes] - testing registry contains #[17 16] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2001 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2002 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2003 |
readData := testingRegistryPath valueTypeAndSize: 'non-zero'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2004 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2005 |
self assert: readData keys first = #REG_BINARY. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2006 |
self assert: (readData at: #'REG_BINARY') = (testingData at: #'REG_BINARY') |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2007 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2008 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2009 |
self run:#testValueTypeAndSize_REG_BINARY_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2010 |
self new testValueTypeAndSize_REG_BINARY_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2011 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2012 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2013 |
"Created: / 31-01-2019 / 15:47:05 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2014 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2015 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2016 |
testValueTypeAndSize_REG_DWORD_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2017 |
"Testing if #REG_DWORD type returns correct size in bytes" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2018 |
| testingData testingRegistryType testingRegistryPath readData | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2019 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2020 |
testingData := Dictionary new. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2021 |
testingRegistryType := UninterpretedBytes isBigEndian ifTrue: [ #REG_DWORD_BIG_ENDIAN ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2022 |
ifFalse: [ #REG_DWORD_LITTLE_ENDIAN ]. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2023 |
testingData at: testingRegistryType put: 4. "/ 32bits = 4 bytes - testing registry contains 0xffffffff |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2024 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2025 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2026 |
readData := testingRegistryPath valueTypeAndSize: 'dword_value'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2027 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2028 |
self assert: readData keys first = testingRegistryType. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2029 |
self assert: (readData at: testingRegistryType) = (testingData at: testingRegistryType) |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2030 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2031 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2032 |
self run:#testValueTypeAndSize_REG_DWORD_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2033 |
self new testValueTypeAndSize_REG_DWORD_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2034 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2035 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2036 |
"Created: / 31-01-2019 / 16:03:52 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2037 |
"Modified (comment): / 01-02-2019 / 15:13:01 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2038 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2039 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2040 |
testValueTypeAndSize_REG_EXPAND_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2041 |
"Testing if #REG_EXPAND_SZ type returns expected string size" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2042 |
| testingData testingRegistryType testingRegistryPath readData | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2043 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2044 |
testingData := Dictionary new. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2045 |
testingRegistryType := #REG_EXPAND_SZ. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2046 |
testingData at: testingRegistryType put: 47. "/ expected string size |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2047 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2048 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2049 |
readData := testingRegistryPath valueTypeAndSize: ' č ルすしか'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2050 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2051 |
self assert: readData keys first = testingRegistryType. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2052 |
self assert: (readData at: testingRegistryType) = (testingData at: testingRegistryType) |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2053 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2054 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2055 |
self run:#testValueTypeAndSize_REG_EXPAND_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2056 |
self new testValueTypeAndSize_REG_EXPAND_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2057 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2058 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2059 |
"Created: / 31-01-2019 / 15:55:35 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2060 |
"Modified (comment): / 01-02-2019 / 15:09:26 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2061 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2062 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2063 |
testValueTypeAndSize_REG_MULTI_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2064 |
"Testing if #REG_MULTI_SZ type returns correct size in bytes" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2065 |
| testingData testingRegistryType testingRegistryPath readData | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2066 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2067 |
testingData := Dictionary new. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2068 |
testingRegistryType := #REG_MULTI_SZ. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2069 |
testingData at: testingRegistryType put: 974. "/ [bytes] - multiple lines in registry |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2070 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2071 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2072 |
readData := testingRegistryPath valueTypeAndSize: 'ř ž č ルすしか'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2073 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2074 |
self assert: readData keys first = testingRegistryType. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2075 |
self assert: (readData at: testingRegistryType) = (testingData at: testingRegistryType) |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2076 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2077 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2078 |
self run:#testValueTypeAndSize_REG_MULTI_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2079 |
self new testValueTypeAndSize_REG_MULTI_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2080 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2081 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2082 |
"Created: / 31-01-2019 / 16:14:31 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2083 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2084 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2085 |
testValueTypeAndSize_REG_NONE_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2086 |
"Testing if #REG_NONE type returns alwyas 0 as it should" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2087 |
| testingRegistryPath readData testingData | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2088 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2089 |
testingData := Dictionary new. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2090 |
testingData at: #REG_NONE put: 0. "/ #REG_NONE always returns 0 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2091 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2092 |
testingRegistryPath := Win32OperatingSystem registryEntry key: (registryPath,'\', '\ ルすしか_testing_delete\reg-none'). |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2093 |
readData := testingRegistryPath valueTypeAndSize: ''. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2094 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2095 |
self assert: readData keys first = #REG_NONE. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2096 |
self assert: (readData at: #'REG_NONE') = (testingData at: #'REG_NONE') |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2097 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2098 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2099 |
self run:#testValueTypeAndSize_REG_NONE_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2100 |
self new testValueTypeAndSize_REG_NONE_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2101 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2102 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2103 |
"Created: / 31-01-2019 / 15:35:37 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2104 |
"Modified (comment): / 01-02-2019 / 15:13:27 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2105 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2106 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2107 |
testValueTypeAndSize_REG_QWORD_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2108 |
"Testing if #REG_QWORD type returns correct size in bytes" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
2109 |
| testingData testingRegistryType testingRegistryPath readData | |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2110 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2111 |
testingData := Dictionary new. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2112 |
testingRegistryType := #REG_QWORD. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2113 |
testingData at: testingRegistryType put: 8. "/ 64bits = 8bytes - testing registry contains 0xffffffffffffffff |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2114 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2115 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2116 |
readData := testingRegistryPath valueTypeAndSize: 'qword_max'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2117 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2118 |
self assert: readData keys first = testingRegistryType. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2119 |
self assert: (readData at: testingRegistryType) = (testingData at: testingRegistryType) |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2120 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2121 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2122 |
self run:#testValueTypeAndSize_REG_DWORD_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2123 |
self new testValueTypeAndSize_REG_DWORD_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2124 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2125 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2126 |
"Created: / 31-01-2019 / 16:12:21 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
2127 |
"Modified: / 11-02-2019 / 13:48:32 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2128 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2129 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2130 |
testValueTypeAndSize_REG_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2131 |
"Testing if #REG_SZ type returns expected string size" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2132 |
| testingRegistryPath readData testingData | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2133 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2134 |
testingData := Dictionary new. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2135 |
testingData at: #REG_SZ put: 13. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2136 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2137 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2138 |
readData := testingRegistryPath valueTypeAndSize: 'しかき '. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2139 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2140 |
self assert: readData keys first = #REG_SZ. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2141 |
self assert: (readData at: #'REG_SZ') = (testingData at: #'REG_SZ') |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2142 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2143 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2144 |
self run:#testValueTypeAndSize_REG_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2145 |
self new testValueTypeAndSize_REG_SZ_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2146 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2147 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2148 |
"Created: / 30-01-2019 / 17:13:53 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2149 |
"Modified (comment): / 31-01-2019 / 16:01:37 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2150 |
! ! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2151 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2152 |
!Win32OperatingSystemTest methodsFor:'tests-unicodeReadEnumeration'! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2153 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2154 |
testReadAllSubKeysDo_MaxPath |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2155 |
"Reading via allSubKeysDo (using subKeyAtIndex:)with maximum path length. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2156 |
The path suppasses the limit specified by Microsoft - for more information see testReadSubKeyAtIndex_MaxPath_01" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2157 |
| readData testingRegistryPath | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2158 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2159 |
readData := OrderedCollection new. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2160 |
testingRegistryPath := Win32OperatingSystem registryEntry key: |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2161 |
(registryPath,'\', ' ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end'). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2162 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2163 |
testingRegistryPath allSubKeysDo: [ :subEntry | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2164 |
readData add: subEntry |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2165 |
]. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2166 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2167 |
self assert: readData notEmptyOrNil. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2168 |
self assert: readData size = 3. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2169 |
"/ this is normally unreachable subKey (subkey actually called 'unreachable') |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2170 |
self assert: (readData at: 2) path size = 575. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2171 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2172 |
readData := readData copy collect: [ :subEntry | subEntry path copyAfterLast: $\ ]. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2173 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2174 |
self assert: readData size = 3. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2175 |
self assert: (readData first endsWith: '|end'). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2176 |
self assert: readData second = 'unreachable'. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2177 |
self assert: readData third = 'reachable' |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2178 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2179 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2180 |
self run:#testReadAllSubKeysDo_MaxPath |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2181 |
self new testReadAllSubKeysDo_MaxPath |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2182 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2183 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2184 |
"Created: / 05-12-2018 / 12:40:53 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2185 |
"Modified (comment): / 01-02-2019 / 14:57:24 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2186 |
! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2187 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2188 |
testReadRemoteKeyOnHost_01 |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2189 |
"Reading remote registry via remoteKeyOnHost: |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2190 |
Note: a key must be a predefined key for more see: |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2191 |
https://docs.microsoft.com/en-us/windows/desktop/SysInfo/predefined-keys" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2192 |
| testingRegistryPath remoteRegistry readData | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2193 |
|
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2194 |
"/ HKEY_CURRENT_USER is one of the predefined keys |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2195 |
testingRegistryPath := Win32OperatingSystem registryEntry key: 'HKEY_CURRENT_USER'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2196 |
"/ testing done on localhost |
2081
015864816df4
Issue #250: testReadRemoteKeyOnHost is skipped when remote registry service is not started
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2080
diff
changeset
|
2197 |
"Skip testing if the remote registry is unreachable. With localhost this can happen when |
015864816df4
Issue #250: testReadRemoteKeyOnHost is skipped when remote registry service is not started
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2080
diff
changeset
|
2198 |
the service RemoteRegistry, the service name in Windows 10, is not started." |
015864816df4
Issue #250: testReadRemoteKeyOnHost is skipped when remote registry service is not started
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2080
diff
changeset
|
2199 |
[ remoteRegistry := testingRegistryPath remoteKeyOnHost: 'localhost' ] on: OsError do: [ :ex | "/ errorCode => `ex parameter parameter` |
015864816df4
Issue #250: testReadRemoteKeyOnHost is skipped when remote registry service is not started
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2080
diff
changeset
|
2200 |
self skipIf: ex parameter parameter = '53' description: 'ERROR_BAD_NETPATH, 53 (0x35) - The network path was not found.' |
015864816df4
Issue #250: testReadRemoteKeyOnHost is skipped when remote registry service is not started
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2080
diff
changeset
|
2201 |
]. |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2202 |
readData := remoteRegistry subKeys. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2203 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2204 |
readData := readData copy collect: [ :subEntry | (subEntry path copyAfterLast: $\) asLowercase ]. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2205 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2206 |
self assert: readData notEmptyOrNil. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2207 |
self assert: (readData includes: 'software'). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2208 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2209 |
" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2210 |
self run:#testReadRemoteKeyOnHost_01 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2211 |
self new testReadRemoteKeyOnHost_01 |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2212 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2213 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2214 |
"Created: / 31-01-2019 / 12:11:06 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2215 |
"Modified (comment): / 01-02-2019 / 14:51:09 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2216 |
! |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2217 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2218 |
testReadRemoteKeyOnHost_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2219 |
"Reading remote registry via remoteKeyOnHost: using non-string key name |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2220 |
Note: a key must be a predefined key for more see: |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2221 |
https://docs.microsoft.com/en-us/windows/desktop/SysInfo/predefined-keys" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2222 |
| testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2223 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2224 |
"/ HKEY_CURRENT_USER is one of the predefined keys |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2225 |
testingRegistryPath := Win32OperatingSystem registryEntry key: 'HKEY_CURRENT_USER'. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2226 |
self should: [ testingRegistryPath remoteKeyOnHost: 11 ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2227 |
raise: Error |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2228 |
suchThat: [ :e | e messageText = 'hostNameString is not a string!!' ] |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2229 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2230 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2231 |
self run:#testReadRemoteKeyOnHost_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2232 |
self new testReadRemoteKeyOnHost_02 |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2233 |
" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2234 |
|
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2235 |
"Created: / 31-01-2019 / 12:10:18 / svestkap" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2236 |
"Modified (format): / 01-02-2019 / 14:51:23 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2237 |
! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2238 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2239 |
testReadSubKeyNamesAndClassesDo_MaxPath |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2240 |
"Reading SubKeyNamesAndClasses with maximum path length. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2241 |
The path suppasses the limit specified by Microsoft - for more information see testReadSubKeyNamesAndClassesAtIndex_MaxPath_01" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2242 |
| readData testingRegistryPath | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2243 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2244 |
readData := OrderedDictionary new. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2245 |
testingRegistryPath := Win32OperatingSystem registryEntry key: |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2246 |
(registryPath,'\', ' ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end'). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2247 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2248 |
testingRegistryPath subKeyNamesAndClassesDo: [ :name :className | |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2249 |
readData at: name put: className. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2250 |
]. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2251 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2252 |
self assert: readData notEmptyOrNil. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2253 |
self assert: readData size = 2. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2254 |
self assert: (readData at: 'reachable') isEmpty. "/ the class is empty |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2255 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2256 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2257 |
self run:#testReadSubKeyNamesAndClassesDo_MaxPath |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2258 |
self new testReadSubKeyNamesAndClassesDo_MaxPath |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2259 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2260 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2261 |
"Created: / 05-12-2018 / 12:41:31 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2262 |
"Modified (comment): / 01-02-2019 / 14:57:00 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2263 |
! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2264 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2265 |
testReadSubKeysDo_MaxPath |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2266 |
"Reading data via subKeysDo (using subKeyAtIndex:) with maximum path length. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2267 |
The path suppasses the limit specified by Microsoft - for more information see testReadSubKeyAtIndex_MaxPath_01" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2268 |
| readData testingRegistryPath | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2269 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2270 |
readData := OrderedCollection new. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2271 |
testingRegistryPath := Win32OperatingSystem registryEntry key: |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2272 |
(registryPath,'\', ' ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end'). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2273 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2274 |
testingRegistryPath subKeysDo: [ :subEntry | |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2275 |
readData add: subEntry |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2276 |
]. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2277 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2278 |
self assert: readData notEmptyOrNil. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2279 |
self assert: readData size = 2. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2280 |
self assert: (readData first) path size = 563. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2281 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2282 |
readData := readData copy collect: [ :subEntry | subEntry path copyAfterLast: $\ ]. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2283 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2284 |
self assert: readData size = 2. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2285 |
self assert: (readData first endsWith: '|end'). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2286 |
self assert: readData second = 'reachable'. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2287 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2288 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2289 |
self run:#testReadSubKeysDo_MaxPath |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2290 |
self new testReadSubKeysDo_MaxPath |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2291 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2292 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2293 |
"Created: / 05-12-2018 / 12:41:49 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2294 |
"Modified (comment): / 01-02-2019 / 14:56:31 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2295 |
! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2296 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2297 |
testReadSubKeys_MaxPath |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2298 |
"Reading via subKeys (using subKeyAtIndex:) with maximum path length. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2299 |
The path suppasses the limit specified by Microsoft - for more information see testReadSubKeyAtIndex_MaxPath_01" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2300 |
| readData testingRegistryPath | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2301 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2302 |
testingRegistryPath := Win32OperatingSystem registryEntry key: |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2303 |
(registryPath,'\', ' ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end'). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2304 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2305 |
readData := testingRegistryPath subKeys. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2306 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2307 |
self assert: readData notEmptyOrNil. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2308 |
self assert: readData size = 2. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2309 |
self assert: (readData first) path size = 563. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2310 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2311 |
readData := readData copy collect: [ :subEntry | subEntry path copyAfterLast: $\ ]. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2312 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2313 |
self assert: readData size = 2. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2314 |
self assert: (readData first endsWith: '|end'). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2315 |
self assert: readData second = 'reachable'. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2316 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2317 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2318 |
self run:#testReadSubKeys_MaxPath |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2319 |
self new testReadSubKeys_MaxPath |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2320 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2321 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2322 |
"Created: / 05-12-2018 / 12:41:59 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2323 |
"Modified (comment): / 01-02-2019 / 14:56:12 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2324 |
! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2325 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2326 |
testReadValueNamesAndValuesDo_MaxPath |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2327 |
"Reading data via #valueNamesAndValuesDo: (using #valueNameAtIndex:) with maximum path length. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2328 |
The path suppasses the limit specified by Microsoft - for more information see testReadValueNameAtIndex_01" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2329 |
| readData testingRegistryPath | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2330 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2331 |
readData := OrderedDictionary new. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2332 |
testingRegistryPath := Win32OperatingSystem registryEntry key: |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2333 |
(registryPath,'\', ' ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end'). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2334 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2335 |
testingRegistryPath valueNamesAndValuesDo: [ :name :value | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2336 |
readData at: name put: value |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2337 |
]. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2338 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2339 |
self assert: readData notEmptyOrNil. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2340 |
self assert: readData size = 3. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2341 |
self assert: readData first = ('testing'->' ルすしか'). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2342 |
self assert: (readData at: 'か')= 2. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2343 |
self assert: readData second = 2. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2344 |
self assert: (readData at: '256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end') |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2345 |
= 'Longer_than_256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|endsdfsdfasdfasdfasdfjlkasdjflkasjdflkjasdlfjaslkdfjlkasdjflkasdflksadlkjsadlfalsdfůlasdjflkasdjflkasjdflkůjasdflůkjasdlůfjalsůkdjflůksd'. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2346 |
self assert: readData third = 'Longer_than_256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|endsdfsdfasdfasdfasdfjlkasdjflkasjdflkjasdlfjaslkdfjlkasdjflkasdflksadlkjsadlfalsdfůlasdjflkasdjflkasjdflkůjasdflůkjasdlůfjalsůkdjflůksd'. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2347 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2348 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2349 |
self run:#testReadValueNamesAndValuesDo_MaxPath |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2350 |
self new testReadValueNamesAndValuesDo_MaxPath |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2351 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2352 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2353 |
"Created: / 05-12-2018 / 12:43:05 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2354 |
"Modified (comment): / 01-02-2019 / 14:54:23 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2355 |
! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2356 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2357 |
testReadValueNamesAndValuesDo_REG_SZ_01 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2358 |
"Testing if REG_SZ values are read correctly via valueNamesAndValuesDo:" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2359 |
| readData testingRegistryPath | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2360 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2361 |
readData := OrderedDictionary new. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2362 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2363 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2364 |
testingRegistryPath valueNamesAndValuesDo: [ :name :data | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2365 |
readData at: name put: data |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2366 |
]. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2367 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2368 |
self assert: (readData at: 'bledesu') = '''Testing Unicode chars ř ž č ルすしかき''). '. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2369 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2370 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2371 |
self run:#testReadValueNamesAndValuesDo_REG_SZ_01 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2372 |
self new testReadValueNamesAndValuesDo_REG_SZ_01 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2373 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2374 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2375 |
"Created: / 16-11-2018 / 12:15:52 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2376 |
"Modified (format): / 01-02-2019 / 13:31:44 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2377 |
! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2378 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2379 |
testReadValueNamesAndValuesDo_REG_SZ_02 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2380 |
"Testing if REG_SZ values are read correctly via valueNamesAndValuesDo:" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2381 |
| readData testingRegistryPath | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2382 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2383 |
readData := OrderedDictionary new. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2384 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2385 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2386 |
testingRegistryPath valueNamesAndValuesDo: [ :name :data | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2387 |
readData at: name put: data |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2388 |
]. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2389 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2390 |
self assert: (readData at: ' ř ž č ル. ') = 'Testing Unicode chars ř ž č ルすしかき'. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2391 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2392 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2393 |
self run:#testReadValueNamesAndValuesDo_REG_SZ_02 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2394 |
self new testReadValueNamesAndValuesDo_REG_SZ_02 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2395 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2396 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2397 |
"Created: / 05-12-2018 / 12:43:35 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2398 |
"Modified (format): / 01-02-2019 / 13:31:48 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2399 |
! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2400 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2401 |
testReadValueNamesDo_MaxPath |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2402 |
"Reading data via #valueNamesDo: (using #valueNameAtIndex:) with maximum path length. |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2403 |
The path is suppassing the Microsoft limit - for more information see testReadValueNameAtIndex_01" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2404 |
| readData readDataValue testingRegistryPath | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2405 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2406 |
readData := OrderedCollection new. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2407 |
testingRegistryPath := Win32OperatingSystem registryEntry key: |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2408 |
(registryPath,'\', ' ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end'). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2409 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2410 |
testingRegistryPath valueNamesDo: [ :subEntry | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2411 |
readData add: subEntry |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2412 |
]. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2413 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2414 |
self assert: readData notEmptyOrNil. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2415 |
self assert: readData size = 3. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2416 |
self assert: readData first = 'testing'. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2417 |
self assert: readData second = 'か'. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2418 |
self assert: readData third = '256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end'. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2419 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2420 |
readDataValue := testingRegistryPath valueNamed: readData third. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2421 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2422 |
"/ MSDN limits: Value name 16,383 characters (@Windows 2000: 260 ANSI characters or 16,383 Unicode characters) |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2423 |
"/ the following tests 401 characters |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2424 |
self assert: readDataValue = 'Longer_than_256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|endsdfsdfasdfasdfasdfjlkasdjflkasjdflkjasdlfjaslkdfjlkasdjflkasdflksadlkjsadlfalsdfůlasdjflkasdjflkasjdflkůjasdflůkjasdlůfjalsůkdjflůksd'. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2425 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2426 |
self run:#testReadValueNamesDo_MaxPath |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2427 |
self new testReadValueNamesDo_MaxPath |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2428 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2429 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2430 |
"Created: / 05-12-2018 / 12:43:49 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2431 |
"Modified (comment): / 01-02-2019 / 14:55:15 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2432 |
! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2433 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2434 |
testReadValueNames_MaxPath |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2435 |
"reading via #valueNames (using #valueNameAtIndex:) with max Path |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2436 |
The path is suppassing the Microsoft limit - for more information see testReadValueNameAtIndex_01" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2437 |
| readData testingRegistryPath | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2438 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2439 |
testingRegistryPath := Win32OperatingSystem registryEntry key: |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2440 |
(registryPath,'\', ' ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end'). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2441 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2442 |
readData := testingRegistryPath valueNames. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2443 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2444 |
self assert: readData isArray. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2445 |
self assert: readData notEmptyOrNil. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2446 |
self assert: readData size = 3. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2447 |
self assert: readData first = 'testing'. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2448 |
self assert: readData second = 'か'. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2449 |
self assert: readData third = '256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end'. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2450 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2451 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2452 |
self run:#testReadValueNames_MaxPath |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2453 |
self new testReadValueNames_MaxPath |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2454 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2455 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2456 |
"Created: / 05-12-2018 / 12:44:16 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2457 |
"Modified (format): / 01-02-2019 / 13:31:55 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2458 |
! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2459 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2460 |
testReadvalueNamesAndValuesDo_MaxPath_01 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2461 |
"reading via #valueNamesAndValuesDo: (using #valueNameAtIndex:) with max Path |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2462 |
The path is suppassing the Microsoft limit - for more information see testReadValueNameAtIndex_01" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2463 |
| readData testingRegistryPath | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2464 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2465 |
readData := OrderedDictionary new. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2466 |
testingRegistryPath := Win32OperatingSystem registryEntry key: |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2467 |
(registryPath,'\', ' ルすしか\256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end'). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2468 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2469 |
testingRegistryPath valueNamesAndValuesDo: [ :name :value | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2470 |
readData at: name put: value |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2471 |
]. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2472 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2473 |
self assert: readData notEmptyOrNil. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2474 |
self assert: readData size = 3. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2475 |
self assert: readData first = ('testing'->' ルすしか'). |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2476 |
self assert: (readData at: 'か')= 2. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2477 |
self assert: readData second = 2. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2478 |
self assert: (readData at: '256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|end') |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2479 |
= 'Longer_than_256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|endsdfsdfasdfasdfasdfjlkasdjflkasjdflkjasdlfjaslkdfjlkasdjflkasdflksadlkjsadlfalsdfůlasdjflkasdjflkasjdflkůjasdflůkjasdlůfjalsůkdjflůksd'. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2480 |
self assert: readData third = 'Longer_than_256_chars_max_long|arsdfasdfjljljasdf;jl;jljsfasdfasdfljaslkdfjkasdfljalsd;jfa;lsdjflkasjdflkajsdflkjasdflkjsadlfjasldfjlsadjflksdjflksadjflkajsdflkjasdlfjalskdjflkasdjflkasdfkj;sdaf;kljkkjkklkjjjjkas|1asdfjsldfjlasdlfjlasdjfljasdlfjalsdjflajdfsdsasdfa|endsdfsdfasdfasdfasdfjlkasdjflkasjdflkjasdlfjaslkdfjlkasdjflkasdflksadlkjsadlfalsdfůlasdjflkasdjflkasjdflkůjasdflůkjasdlůfjalsůkdjflůksd'. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2481 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2482 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2483 |
self run:#testReadvalueNamesAndValuesDo_MaxPath_01 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2484 |
self new testReadvalueNamesAndValuesDo_MaxPath_01 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2485 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2486 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2487 |
"Created: / 22-11-2018 / 14:10:34 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2488 |
"Modified (format): / 01-02-2019 / 13:31:59 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2489 |
! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2490 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2491 |
testReadvalueNamesAndValuesDo_REG_SZ_02 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2492 |
"Testing if REG_SZ values are read correctly via valueNamesAndValuesDo:" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2493 |
| readData testingRegistryPath | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2494 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2495 |
readData := OrderedDictionary new. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2496 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2497 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2498 |
testingRegistryPath valueNamesAndValuesDo: [ :name :data | |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2499 |
readData at: name put: data |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2500 |
]. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2501 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2502 |
self assert: (readData at: ' ř ž č ル. ') = 'Testing Unicode chars ř ž č ルすしかき'. |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2503 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2504 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2505 |
self run:#testReadvalueNamesAndValuesDo_REG_SZ_02 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2506 |
self new testReadvalueNamesAndValuesDo_REG_SZ_02 |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2507 |
" |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2508 |
|
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2509 |
"Created: / 16-11-2018 / 12:16:16 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2510 |
"Modified (format): / 01-02-2019 / 13:32:02 / svestkap" |
2078
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2511 |
! ! |
9d76442a61bb
Issue #250: Tests for Unicode read: with and without enumeration, remote registry, empty data values, non-string names
Patrik Svestka <patrik.svestka@gmail.com>
parents:
1977
diff
changeset
|
2512 |
|
2214
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2513 |
!Win32OperatingSystemTest methodsFor:'tests-unicodeRename'! |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2514 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2515 |
testRenameSubKey_01 |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2516 |
"Testing if subKey is correctly renamed" |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2517 |
| readData testingRegistryEntryPath | |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2518 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2519 |
testingRegistryEntryPath := Win32OperatingSystem registryEntry key: registryPath. |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2520 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2521 |
self assert: (testingRegistryEntryPath renameSubKey: ' ルすしか_testing_delete' to: 'RenamedSubKey'). |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2522 |
readData := testingRegistryEntryPath subKeyNamed: 'RenamedSubKey'. |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2523 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2524 |
self assert: readData notEmptyOrNil. |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2525 |
self assert: readData path = (registryPath, '\', 'RenamedSubKey'). |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2526 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2527 |
" |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2528 |
self run:#testRenameSubKey_01 |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2529 |
self new testRenameSubKey_01 |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2530 |
" |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2531 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2532 |
"Created: / 09-04-2019 / 09:05:28 / svestkap" |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2533 |
! |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2534 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2535 |
testRenameSubKey_02 |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2536 |
"Testing if subKey is correctly renamed" |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2537 |
| readData testingRegistryEntryPath | |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2538 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2539 |
testingRegistryEntryPath := Win32OperatingSystem registryEntry key: registryPath. |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2540 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2541 |
self assert: (testingRegistryEntryPath renameSubKey: ' ルすしか_testing_delete' to: 'すしか_'). |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2542 |
readData := testingRegistryEntryPath subKeyNamed: 'すしか_'. |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2543 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2544 |
self assert: readData notEmptyOrNil. |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2545 |
self assert: readData path = (registryPath, '\', 'すしか_'). |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2546 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2547 |
testingRegistryEntryPath := Win32OperatingSystem registryEntry key: (registryPath, '\', 'すしか_'). |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2548 |
readData := testingRegistryEntryPath subKeyNamed: 'bobr'. |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2549 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2550 |
self assert: readData notEmptyOrNil. |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2551 |
self assert: readData path = (registryPath, '\', 'すしか_', '\', 'bobr') |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2552 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2553 |
" |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2554 |
self run:#testRenameSubKey_02 |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2555 |
self new testRenameSubKey_02 |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2556 |
" |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2557 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2558 |
"Created: / 09-04-2019 / 09:35:05 / svestkap" |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2559 |
! |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2560 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2561 |
testRenameSubKey_03 |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2562 |
"Testing when renamed subKey does not exist" |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2563 |
| readData testingRegistryEntryPath | |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2564 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2565 |
testingRegistryEntryPath := Win32OperatingSystem registryEntry key: registryPath. |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2566 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2567 |
self deny: (testingRegistryEntryPath renameSubKey: 'a key that does not exist' to: 'すしか_'). |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2568 |
readData := testingRegistryEntryPath subKeyNamed: 'すしか_'. |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2569 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2570 |
self assert: readData isEmptyOrNil |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2571 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2572 |
" |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2573 |
self run:#testRenameSubKey_03 |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2574 |
self new testRenameSubKey_03 |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2575 |
" |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2576 |
|
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2577 |
"Created: / 09-04-2019 / 09:39:52 / svestkap" |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2578 |
! ! |
ba58ef8a6214
Issue #269: Tests when renaming registy subKey(s)
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2087
diff
changeset
|
2579 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2580 |
!Win32OperatingSystemTest methodsFor:'tests-unicodeWrite'! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2581 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2582 |
testDefaultValue_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2583 |
"Testing if value can be stored (defaultValue:) and read (defaultValue) |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2584 |
Note: the value is stored in (Default) value at the key" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2585 |
| testingRegistryPath readData | |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2586 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2587 |
registryPath := registryPath, '\', ' ルすしか'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2588 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2589 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2590 |
readData := testingRegistryPath defaultValue. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2591 |
self assert: readData isNil. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2592 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2593 |
testingRegistryPath defaultValue: 'すし.ACE.OLEDB.16.0'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2594 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2595 |
readData := testingRegistryPath defaultValue. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2596 |
self assert: readData = 'すし.ACE.OLEDB.16.0'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2597 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2598 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2599 |
self run:#testDefaultValue_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2600 |
self new testDefaultValue_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2601 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2602 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2603 |
"Created: / 12-12-2018 / 12:35:53 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2604 |
"Modified (format): / 01-02-2019 / 13:55:01 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2605 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2606 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2607 |
testDefaultValue_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2608 |
"Testing if value can be stored (defaultValue:) and read (defaultValue) with registry type and size check |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2609 |
Note: the value is stored in (Default) value at the key" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2610 |
| testingRegistryPath registryType readData | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2611 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2612 |
registryPath := registryPath, '\', ' ルすしか'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2613 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2614 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2615 |
readData := testingRegistryPath defaultValue. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2616 |
self assert: readData isNil. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2617 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2618 |
testingRegistryPath defaultValue: 'すし.ACE.OLEDB.16.0'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2619 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2620 |
registryType := testingRegistryPath valueTypeAndSize: ''. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2621 |
self assert: registryType keys first isSymbol. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2622 |
self assert: registryType keys first equals: #REG_SZ. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2623 |
self assert: registryType first isNumber. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2624 |
self assert: registryType first equals: 17. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2625 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2626 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2627 |
readData := testingRegistryPath defaultValue. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2628 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2629 |
self assert: readData = 'すし.ACE.OLEDB.16.0'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2630 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2631 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2632 |
self run:#testDefaultValue_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2633 |
self new testDefaultValue_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2634 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2635 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2636 |
"Created: / 12-12-2018 / 11:07:11 / svestkap" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2637 |
"Modified: / 12-12-2018 / 14:08:14 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2638 |
"Modified (comment): / 01-02-2019 / 13:55:06 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2639 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2640 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2641 |
testWriteValueNamedPut_REG_BINARY_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2642 |
"Testing if REG_BINARY zero value is written correctly via valueNamed:put: |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2643 |
Data is written and read back again." |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2644 |
| testingRegistryPath readData | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2645 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2646 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2647 |
testingRegistryPath valueNamed: 'non-zero' put: ByteArray new. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2648 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2649 |
readData := testingRegistryPath valueNamed: 'non-zero'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2650 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2651 |
self assert: readData = ByteArray new. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2652 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2653 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2654 |
self run:#testWriteValueNamedPut_REG_BINARY_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2655 |
self new testWriteValueNamedPut_REG_BINARY_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2656 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2657 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2658 |
"Created: / 04-12-2018 / 11:52:46 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2659 |
"Modified (format): / 01-02-2019 / 13:55:10 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2660 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2661 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2662 |
testWriteValueNamedPut_REG_BINARY_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2663 |
"Testing if REG_BINARY values are written correctly via valueNamed:put: |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2664 |
Data is written and read back again." |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2665 |
| testingRegistryPath byteArray readData readDataHex | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2666 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2667 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2668 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2669 |
byteArray := ByteArray new: 5. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2670 |
"/ data to be written |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2671 |
byteArray replaceElementsFrom: 1 to: 5 withArray: #[18 234 11 0 18] startingAt: 1. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2672 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2673 |
testingRegistryPath valueNamed: 'non-zero' put: byteArray. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2674 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2675 |
readData := testingRegistryPath valueNamed: 'non-zero'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2676 |
readDataHex := readData hexPrintStringWithSeparator: $|. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2677 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2678 |
self assert: readData = #[18 234 11 0 18]. "/ ByteArray |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2679 |
self assert: readDataHex = '12|EA|0B|00|12' "/ hex |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2680 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2681 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2682 |
self run:#testWriteValueNamedPut_REG_BINARY_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2683 |
self new testWriteValueNamedPut_REG_BINARY_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2684 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2685 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2686 |
"Created: / 04-12-2018 / 12:04:18 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2687 |
"Modified (format): / 01-02-2019 / 13:55:13 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2688 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2689 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2690 |
testWriteValueNamedPut_REG_BINARY_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2691 |
"Testing if new REG_BINARY value name is written correctly via valueNamed:put: |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2692 |
Data is written and read back again." |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2693 |
| testingRegistryPath byteArray readData readDataHex | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2694 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2695 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2696 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2697 |
byteArray := ByteArray new: 5. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2698 |
"/ data to be written |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2699 |
byteArray replaceElementsFrom: 1 to: 5 withArray: #[18 234 11 0 18] startingAt: 1. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2700 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2701 |
testingRegistryPath valueNamed: 'Binaryル' put: byteArray. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2702 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2703 |
readData := testingRegistryPath valueNamed: 'Binaryル'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2704 |
readDataHex := readData hexPrintStringWithSeparator: $|. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2705 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2706 |
self assert: readData = #[18 234 11 0 18]. "/ ByteArray |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2707 |
self assert: readDataHex = '12|EA|0B|00|12' "/ hex |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2708 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2709 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2710 |
self run:#testWriteValueNamedPut_REG_BINARY_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2711 |
self new testWriteValueNamedPut_REG_BINARY_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2712 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2713 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2714 |
"Created: / 07-12-2018 / 15:15:06 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2715 |
"Modified (format): / 01-02-2019 / 13:56:49 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2716 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2717 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2718 |
testWriteValueNamedPut_REG_BINARY_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2719 |
"Testing if new REG_BINARY value name is written correctly via valueNamed:put: with registry type and size check |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2720 |
Data is written and read back again." |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2721 |
| testingRegistryPath byteArray readData readDataHex registryType | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2722 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2723 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2724 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2725 |
byteArray := ByteArray new: 5. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2726 |
"/ data to be written |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2727 |
byteArray replaceElementsFrom: 1 to: 5 withArray: #[18 234 11 0 18] startingAt: 1. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2728 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2729 |
testingRegistryPath valueNamed: 'Binaryル' put: byteArray. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2730 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2731 |
registryType := testingRegistryPath valueTypeAndSize: 'Binaryル'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2732 |
self assert: registryType keys first equals: #REG_BINARY. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2733 |
self assert: registryType first equals: 5. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2734 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2735 |
readData := testingRegistryPath valueNamed: 'Binaryル'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2736 |
readDataHex := readData hexPrintStringWithSeparator: $|. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2737 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2738 |
self assert: readData = #[18 234 11 0 18]. "/ ByteArray |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2739 |
self assert: readDataHex = '12|EA|0B|00|12' "/ hex |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2740 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2741 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2742 |
self run:#testWriteValueNamedPut_REG_BINARY_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2743 |
self new testWriteValueNamedPut_REG_BINARY_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2744 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2745 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2746 |
"Created: / 12-12-2018 / 12:36:46 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2747 |
"Modified (format): / 01-02-2019 / 13:56:52 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2748 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2749 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2750 |
testWriteValueNamedPut_REG_BINARY_05 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2751 |
"Testing if REG_BINARY values are written correctly via valueNamed:put: |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2752 |
Data is written and read back again." |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2753 |
| testingRegistryPath byteArray readData readDataHex registryType | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2754 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2755 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2756 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2757 |
readData := testingRegistryPath valueNamed: 'non-zero'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2758 |
self assert: readData = #[17 16]. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2759 |
registryType := testingRegistryPath valueTypeAndSize: 'non-zero'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2760 |
self assert: registryType keys first equals: #REG_BINARY. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2761 |
self assert: registryType first equals: 2. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2762 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2763 |
byteArray := ByteArray new: 5. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2764 |
"/ data to be written |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2765 |
byteArray replaceElementsFrom: 1 to: 5 withArray: #[18 234 11 0 18] startingAt: 1. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2766 |
"/ saving value into registry |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2767 |
testingRegistryPath valueNamed: 'non-zero' put: byteArray. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2768 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2769 |
"/ testing the saved value |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2770 |
registryType := testingRegistryPath valueTypeAndSize: 'non-zero'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2771 |
self assert: registryType keys first equals: #REG_BINARY. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2772 |
self assert: registryType first equals: 5. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2773 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2774 |
readData := testingRegistryPath valueNamed: 'non-zero'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2775 |
readDataHex := readData hexPrintStringWithSeparator: $|. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2776 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2777 |
self assert: readData = #[18 234 11 0 18]. "/ ByteArray |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2778 |
self assert: readDataHex = '12|EA|0B|00|12' "/ hex |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2779 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2780 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2781 |
self run:#testWriteValueNamedPut_REG_BINARY_05 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2782 |
self new testWriteValueNamedPut_REG_BINARY_05 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2783 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2784 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2785 |
"Created: / 12-12-2018 / 13:16:13 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2786 |
"Modified (format): / 01-02-2019 / 13:56:55 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2787 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2788 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2789 |
testWriteValueNamedPut_REG_DWORD_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2790 |
"Testing if REG_DWORD values are written correctly via valueNamed:put:" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2791 |
| readData testingRegistryPath | |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
2792 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2793 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2794 |
testingRegistryPath valueNamed: 'dword_value' put: 7337. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2795 |
readData := testingRegistryPath valueNamed: 'dword_value'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2796 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2797 |
self assert: readData = 7337. |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2798 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2799 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2800 |
self run:#testWriteValueNamedPut_REG_DWORD_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2801 |
self new testWriteValueNamedPut_REG_DWORD_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2802 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2803 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2804 |
"Created: / 05-12-2018 / 11:35:52 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
2805 |
"Modified: / 12-02-2019 / 14:54:58 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2806 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2807 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2808 |
testWriteValueNamedPut_REG_DWORD_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2809 |
"Testing if max DWORD is accepted as REG_DWORD (written correctly via valueNamed:put:)" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2810 |
| readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2811 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2812 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2813 |
"/ max DWORD value 0xffffffff -> 4294967295 (which is on x64 SmallInteger) |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2814 |
testingRegistryPath valueNamed: 'dword_value' put: 4294967295. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2815 |
readData := testingRegistryPath valueNamed: 'dword_value'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2816 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2817 |
self assert: readData = 4294967295. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2818 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2819 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2820 |
self run:#testWriteValueNamedPut_REG_DWORD_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2821 |
self new testWriteValueNamedPut_REG_DWORD_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2822 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2823 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2824 |
"Created: / 05-12-2018 / 11:36:00 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
2825 |
"Modified: / 12-02-2019 / 14:55:03 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2826 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2827 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2828 |
testWriteValueNamedPut_REG_DWORD_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2829 |
"Testing if REG_DWORD values are written correctly via valueNamed:put: |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2830 |
Data is written and read back again." |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2831 |
| readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2832 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2833 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2834 |
testingRegistryPath valueNamed: '11' put: 7337. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2835 |
readData := testingRegistryPath valueNamed: '11'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2836 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2837 |
self assert: readData = 7337 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2838 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2839 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2840 |
self run:#testWriteValueNamedPut_REG_DWORD_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2841 |
self new testWriteValueNamedPut_REG_DWORD_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2842 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2843 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2844 |
"Created: / 05-12-2018 / 11:35:36 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
2845 |
"Modified: / 12-02-2019 / 14:55:08 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2846 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2847 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2848 |
testWriteValueNamedPut_REG_DWORD_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2849 |
"Testing if REG_DWORD values are written correctly via valueNamed:put: |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2850 |
Data is written and read back again." |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2851 |
| readData testingRegistryPath | |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
2852 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2853 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2854 |
testingRegistryPath valueNamed: '11' put: 7337. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2855 |
readData := testingRegistryPath valueNamed: '11'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2856 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2857 |
self assert: readData = 7337 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2858 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2859 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2860 |
self run:#testWriteValueNamedPut_REG_DWORD_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2861 |
self new testWriteValueNamedPut_REG_DWORD_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2862 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2863 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2864 |
"Created: / 05-12-2018 / 11:39:00 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
2865 |
"Modified: / 12-02-2019 / 14:55:14 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2866 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2867 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2868 |
testWriteValueNamedPut_REG_DWORD_05 |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2869 |
"Testing if trying to access REG_DWORD values via name as number raises a predefined error" |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2870 |
| testingRegistryPath | |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2871 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2872 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2873 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2874 |
self should: [ testingRegistryPath valueNamed: 11 put: 7337] raise: Error |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2875 |
suchThat: [ :e | e messageText = 'nameString is not a string!!' ]. |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2876 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2877 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2878 |
self run:#testWriteValueNamedPut_REG_DWORD_05 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2879 |
self new testWriteValueNamedPut_REG_DWORD_05 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2880 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2881 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2882 |
"Created: / 05-12-2018 / 12:29:06 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
2883 |
"Modified (comment): / 01-02-2019 / 14:28:28 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2884 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2885 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2886 |
testWriteValueNamedPut_REG_DWORD_06 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2887 |
"Testing if new REG_DWORD value name is written correctly via valueNamed:put: |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2888 |
Data is written and read back again." |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2889 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2890 |
| readData testingRegistryPath | |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
2891 |
|
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2892 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2893 |
testingRegistryPath valueNamed: '374657654ル' put: 7337. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2894 |
readData := testingRegistryPath valueNamed: '374657654ル'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2895 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2896 |
self assert: readData = 7337 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2897 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2898 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2899 |
self run:#testWriteValueNamedPut_REG_DWORD_06 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2900 |
self new testWriteValueNamedPut_REG_DWORD_06 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2901 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2902 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2903 |
"Created: / 07-12-2018 / 15:10:24 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
2904 |
"Modified: / 12-02-2019 / 14:55:23 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2905 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2906 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2907 |
testWriteValueNamedPut_REG_DWORD_07 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2908 |
"Testing if REG_DWORD values are written correctly via valueNamed:put: with registry type and size check" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2909 |
| readData testingRegistryPath registryType endianness | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2910 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2911 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2912 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2913 |
"/ checking registry type and size |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2914 |
registryType := testingRegistryPath valueTypeAndSize: 'dword_value'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2915 |
registryType keys first == #REG_DWORD_LITTLE_ENDIAN ifTrue: [ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2916 |
self assert: registryType keys first equals: #REG_DWORD_LITTLE_ENDIAN. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2917 |
endianness := #REG_DWORD_LITTLE_ENDIAN |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2918 |
] ifFalse: [ |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2919 |
self assert: registryType keys first equals: #REG_DWORD_BIG_ENDIAN. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2920 |
endianness := #REG_DWORD_BIG_ENDIAN |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2921 |
]. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2922 |
self assert: registryType first equals: 4. "/ 32 bits = 4 bytes |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2923 |
"/ read data |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2924 |
readData := testingRegistryPath valueNamed: 'dword_value'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2925 |
self assert: readData = 9135. "/ the previous value |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2926 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2927 |
"/ inserting new value |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2928 |
testingRegistryPath valueNamed: 'dword_value' put: 7337. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2929 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2930 |
"/ checking registry type and size |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2931 |
registryType := testingRegistryPath valueTypeAndSize: 'dword_value'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2932 |
self assert: registryType keys first equals: endianness. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2933 |
self assert: registryType first equals: 4. "/ 32 bits = 4 bytes |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2934 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2935 |
"/ read data |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2936 |
readData := testingRegistryPath valueNamed: 'dword_value'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2937 |
self assert: readData = 7337. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2938 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2939 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2940 |
self run:#testWriteValueNamedPut_REG_DWORD_07 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2941 |
self new testWriteValueNamedPut_REG_DWORD_07 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2942 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2943 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2944 |
"Created: / 12-12-2018 / 12:13:53 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
2945 |
"Modified: / 12-02-2019 / 14:55:30 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2946 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2947 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2948 |
testWriteValueNamedPut_REG_EXPAND_SZ_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2949 |
"Testing if REG_EXPAND_SZ values are written correctly via valueNamed:put: |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2950 |
Data is written and read back again." |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2951 |
| readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2952 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2953 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2954 |
testingRegistryPath valueNamed: 'bledesu' put: '"%PATH%"' unexpandedReferences: true. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2955 |
readData := testingRegistryPath valueNamed: 'bledesu'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2956 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2957 |
self assert: readData = '"%PATH%"' |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2958 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2959 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2960 |
self run:#testWriteValueNamedPut_REG_EXPAND_SZ_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2961 |
self new testWriteValueNamedPut_REG_EXPAND_SZ_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2962 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2963 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2964 |
"Created: / 07-12-2018 / 15:08:50 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
2965 |
"Modified: / 12-02-2019 / 14:55:35 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2966 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2967 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2968 |
testWriteValueNamedPut_REG_EXPAND_SZ_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2969 |
"Testing if new REG_EXPAND_SZ value name is written correctly via valueNamed:put: |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2970 |
Data is written and read back again." |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2971 |
| readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2972 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2973 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2974 |
testingRegistryPath valueNamed: 'Yooooル' put: '"%PATH%"' unexpandedReferences: true. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2975 |
readData := testingRegistryPath valueNamed: 'Yooooル'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2976 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2977 |
self assert: readData = '"%PATH%"' |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2978 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2979 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2980 |
self run:#testWriteValueNamedPut_REG_EXPAND_SZ_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2981 |
self new testWriteValueNamedPut_REG_EXPAND_SZ_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2982 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2983 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2984 |
"Created: / 07-12-2018 / 15:09:14 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
2985 |
"Modified: / 12-02-2019 / 14:55:38 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2986 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2987 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2988 |
testWriteValueNamedPut_REG_EXPAND_SZ_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2989 |
"Testing if new REG_EXPAND_SZ value name is written correctly via valueNamed:put: with registry type and size check |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2990 |
Data is written and read back again." |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2991 |
| readData testingRegistryPath registryType | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2992 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2993 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2994 |
testingRegistryPath valueNamed: 'Yooooル' put: '"%PATH%"' unexpandedReferences: true. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2995 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2996 |
registryType := testingRegistryPath valueTypeAndSize: 'Yooooル'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2997 |
self assert: registryType keys first equals: #REG_EXPAND_SZ. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2998 |
self assert: registryType first equals: 8. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
2999 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3000 |
readData := testingRegistryPath valueNamed: 'Yooooル'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3001 |
self assert: readData = '"%PATH%"' |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3002 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3003 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3004 |
self run:#testWriteValueNamedPut_REG_EXPAND_SZ_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3005 |
self new testWriteValueNamedPut_REG_EXPAND_SZ_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3006 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3007 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3008 |
"Created: / 12-12-2018 / 12:41:44 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3009 |
"Modified (format): / 12-02-2019 / 14:55:44 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3010 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3011 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3012 |
testWriteValueNamedPut_REG_EXPAND_SZ_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3013 |
"Testing if REG_EXPAND_SZ values are written correctly via valueNamed:put: with registry type and size check |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3014 |
Data is written and read back again (notice the registry type change #REG_SZ to #REG_EXPAND_SZ)." |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3015 |
| readData testingRegistryPath registryType | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3016 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3017 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3018 |
"/ checking type and size |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3019 |
registryType := testingRegistryPath valueTypeAndSize: 'bledesu'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3020 |
self assert: registryType keys first equals: #REG_SZ. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3021 |
self assert: registryType first equals: 47. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3022 |
"/ checking the actual value |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3023 |
readData := testingRegistryPath valueNamed: 'bledesu'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3024 |
self assert: readData = '''Testing Unicode chars ř ž č ルすしかき''). '. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3025 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3026 |
"/ saving value into the registry |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3027 |
testingRegistryPath valueNamed: 'bledesu' put: '"%PATH%"' unexpandedReferences: true. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3028 |
"/ checking type and size |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3029 |
registryType := testingRegistryPath valueTypeAndSize: 'bledesu'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3030 |
self assert: registryType keys first equals: #REG_EXPAND_SZ. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3031 |
self assert: registryType first equals: 8. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3032 |
"/ checking the actual value |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3033 |
readData := testingRegistryPath valueNamed: 'bledesu'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3034 |
self assert: readData = '"%PATH%"' |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3035 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3036 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3037 |
self run:#testWriteValueNamedPut_REG_EXPAND_SZ_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3038 |
self new testWriteValueNamedPut_REG_EXPAND_SZ_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3039 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3040 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3041 |
"Created: / 12-12-2018 / 13:22:25 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3042 |
"Modified: / 12-02-2019 / 14:55:52 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3043 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3044 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3045 |
testWriteValueNamedPut_REG_MULTI_SZ_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3046 |
"Testing if REG_MULTI_SZ values are write correctly via valueNamed:put:" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3047 |
| readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3048 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3049 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3050 |
testingRegistryPath valueNamed: 'Font_Leelawadee UI Bold' put: #('SEGOEUIB.TTF,Segoe UI Bold,110,82' 'řeřicha - ルすしかき'). |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3051 |
readData := testingRegistryPath valueNamed: 'Font_Leelawadee UI Bold'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3052 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3053 |
self assert: readData = #('SEGOEUIB.TTF,Segoe UI Bold,110,82' 'řeřicha - ルすしかき'). |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3054 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3055 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3056 |
self run:#testWriteValueNamedPut_REG_MULTI_SZ_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3057 |
self new testWriteValueNamedPut_REG_MULTI_SZ_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3058 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3059 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3060 |
"Created: / 27-11-2018 / 09:29:57 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3061 |
"Modified (format): / 01-02-2019 / 14:30:32 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3062 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3063 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3064 |
testWriteValueNamedPut_REG_MULTI_SZ_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3065 |
"Testing if REG_MULTI_SZ values are write correctly via valueNamed:put: |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3066 |
Note: The value data could be up to available memory on Windows 10 (in reality NOT recommended to go over 1MB). |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3067 |
On older Windows (2003/XP) there was a hard limit on 1MB." |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3068 |
| testingRegistryPath testData testDataArray readData | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3069 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3070 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3071 |
testData := OrderedCollection new. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3072 |
|
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3073 |
"This is rather tricky to test. It must test the functionality but on all windows. Since older windows have a hard limit |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3074 |
of 1MB (for ASCII). Since Windows use UTF-16 internal you have to count 2 bytes per 1 character. There maybe a 4bytes per character, |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3075 |
to be on the safe side, the 256kB limit will be used. On Windows 10 the limit is much higher, perhaps all the available memory." |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3076 |
"/ 256kB (storing in worst case scenario / 48characters (unicode) -> 5333times |
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3077 |
5333 timesRepeat: [ testData add: 'SEGOEUIB.TTF,Segoe UI Bold,110,82'. |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3078 |
testData add: 'řeřicha - ルすしかき' |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3079 |
]. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3080 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3081 |
testDataArray := testData asArray. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3082 |
"/ storing the array |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3083 |
testingRegistryPath valueNamed: 'ř ž č ルすしか' put: testDataArray. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3084 |
"/ reading the stored array back |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3085 |
readData := testingRegistryPath valueNamed: 'ř ž č ルすしか'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3086 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3087 |
self assert: readData = testDataArray. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3088 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3089 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3090 |
self run:#testWriteValueNamedPut_REG_MULTI_SZ_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3091 |
self new testWriteValueNamedPut_REG_MULTI_SZ_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3092 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3093 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3094 |
"Created: / 28-11-2018 / 14:46:55 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3095 |
"Modified (comment): / 12-02-2019 / 15:08:08 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3096 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3097 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3098 |
testWriteValueNamedPut_REG_MULTI_SZ_03 |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3099 |
"Testing if REG_MULTI_SZ an empty array is written via valueNamed:put:" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3100 |
| readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3101 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3102 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3103 |
testingRegistryPath valueNamed: 'Font_Leelawadee UI Bold' put: Array new. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3104 |
readData := testingRegistryPath valueNamed: 'Font_Leelawadee UI Bold'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3105 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3106 |
self assert: readData isEmpty. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3107 |
self assert: readData isArray. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3108 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3109 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3110 |
self run:#testWriteValueNamedPut_REG_MULTI_SZ_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3111 |
self new testWriteValueNamedPut_REG_MULTI_SZ_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3112 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3113 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3114 |
"Created: / 05-12-2018 / 11:54:05 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3115 |
"Modified (comment): / 01-02-2019 / 14:33:14 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3116 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3117 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3118 |
testWriteValueNamedPut_REG_MULTI_SZ_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3119 |
"Testing if new REG_MULTI_SZ value name is written correctly via valueNamed:put:" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3120 |
| readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3121 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3122 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3123 |
testingRegistryPath valueNamed: 'new_reg_multiル' put: #('SEGOEUIB.TTF,Segoe UI Bold,110,82' 'řeřicha - ルすしかき'). |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3124 |
readData := testingRegistryPath valueNamed: 'new_reg_multiル'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3125 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3126 |
self assert: readData = #('SEGOEUIB.TTF,Segoe UI Bold,110,82' 'řeřicha - ルすしかき'). |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3127 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3128 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3129 |
self run:#testWriteValueNamedPut_REG_MULTI_SZ_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3130 |
self new testWriteValueNamedPut_REG_MULTI_SZ_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3131 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3132 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3133 |
"Created: / 07-12-2018 / 15:08:03 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3134 |
"Modified (format): / 01-02-2019 / 14:33:54 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3135 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3136 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3137 |
testWriteValueNamedPut_REG_MULTI_SZ_05 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3138 |
"Testing if REG_MULTI_SZ values are write correctly via valueNamed:put: with registry type and size check" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3139 |
| registryType readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3140 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3141 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3142 |
testingRegistryPath valueNamed: 'Font_Leelawadee UI Bold' put: #('SEGOEUIB.TTF,Segoe UI Bold,110,82' 'řeřicha - ルすしかき'). |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3143 |
readData := testingRegistryPath valueNamed: 'Font_Leelawadee UI Bold'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3144 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3145 |
self assert: readData = #('SEGOEUIB.TTF,Segoe UI Bold,110,82' 'řeřicha - ルすしかき'). |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3146 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3147 |
registryType := testingRegistryPath valueTypeAndSize: 'Font_Leelawadee UI Bold'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3148 |
self assert: registryType keys first equals: #REG_MULTI_SZ. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3149 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3150 |
"/ (array node size + terminating null) + (array node size + terminating null) * sizeof(wchar_t) + terminating null |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3151 |
"/ ((Array at: 1) size + 1) + ((Array at: 2) size + 1) * 2 + 1 = (34 + 16) * 2 + 1 = 101 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3152 |
self assert: (registryType at: #REG_MULTI_SZ) equals: 101. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3153 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3154 |
self run:#testWriteValueNamedPut_REG_MULTI_SZ_05 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3155 |
self new testWriteValueNamedPut_REG_MULTI_SZ_05 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3156 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3157 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3158 |
"Created: / 12-12-2018 / 11:34:08 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3159 |
"Modified (format): / 01-02-2019 / 14:34:22 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3160 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3161 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3162 |
testWriteValueNamedPut_REG_NONE_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3163 |
"Testing if REG_NONE values are written correctly via valueNamed:put: |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3164 |
Data is written and read back again." |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3165 |
| readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3166 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3167 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3168 |
testingRegistryPath valueNamed: 'bledesu' put: nil. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3169 |
readData := testingRegistryPath valueNamed: 'bledesu'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3170 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3171 |
self assert: readData isNil |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3172 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3173 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3174 |
self run:#testWriteValueNamedPut_REG_NONE_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3175 |
self new testWriteValueNamedPut_REG_NONE_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3176 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3177 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3178 |
"Created: / 07-12-2018 / 15:06:08 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3179 |
"Modified: / 12-02-2019 / 14:56:08 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3180 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3181 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3182 |
testWriteValueNamedPut_REG_NONE_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3183 |
"Testing if new REG_NONE value name is written correctly via valueNamed:put: |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3184 |
Data is written and read back again." |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3185 |
| readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3186 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3187 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3188 |
testingRegistryPath valueNamed: 'New nilル name' put: nil. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3189 |
readData := testingRegistryPath valueNamed: 'New nilル name'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3190 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3191 |
self assert: readData isNil |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3192 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3193 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3194 |
self run:#testWriteValueNamedPut_REG_NONE_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3195 |
self new testWriteValueNamedPut_REG_NONE_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3196 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3197 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3198 |
"Created: / 07-12-2018 / 15:06:48 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3199 |
"Modified: / 12-02-2019 / 14:56:13 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3200 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3201 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3202 |
testWriteValueNamedPut_REG_NONE_03 |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3203 |
"Testing if new REG_NONE value name is written correctly via valueNamed:put: |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3204 |
with registry type and size check. Data is written and read back again." |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3205 |
| readData testingRegistryPath registryType | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3206 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3207 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3208 |
testingRegistryPath valueNamed: 'New nilル name' put: nil. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3209 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3210 |
registryType := testingRegistryPath valueTypeAndSize: 'New nilル name'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3211 |
self assert: registryType keys first equals: #REG_NONE. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3212 |
self assert: registryType first equals: 0. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3213 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3214 |
readData := testingRegistryPath valueNamed: 'New nilル name'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3215 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3216 |
self assert: readData isNil |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3217 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3218 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3219 |
self run:#testWriteValueNamedPut_REG_NONE_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3220 |
self new testWriteValueNamedPut_REG_NONE_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3221 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3222 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3223 |
"Created: / 12-12-2018 / 12:47:40 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3224 |
"Modified: / 12-02-2019 / 14:56:19 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3225 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3226 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3227 |
testWriteValueNamedPut_REG_QWORD_01 |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3228 |
"Testing if max QWORD value is written and read correctly from REG_QWORD (valueNamed:put: and valueNamed:). |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3229 |
Storing maximum QWORD value (0xffffffffffffffff -> 18446744073709551615x64)" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3230 |
| readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3231 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3232 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3233 |
testingRegistryPath valueNamed: 'qword_max' put: 18446744073709551615. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3234 |
readData := testingRegistryPath valueNamed: 'qword_max'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3235 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3236 |
self assert: readData = 18446744073709551615. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3237 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3238 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3239 |
self run:#testReadValueNamed_REG_QWORD_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3240 |
self new testReadValueNamed_REG_QWORD_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3241 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3242 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3243 |
"Created: / 26-11-2018 / 14:54:45 / svestkap" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3244 |
"Modified: / 07-12-2018 / 15:11:56 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3245 |
"Modified (comment): / 01-02-2019 / 14:37:55 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3246 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3247 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3248 |
testWriteValueNamedPut_REG_QWORD_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3249 |
"Testing what happens if more then max value is stored in REG_QWORD registry type (valueNamed:put: and valueNamed:)" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3250 |
| readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3251 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3252 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3253 |
"/ max QWORD value is: 0xff-ff-ff-ff-ff-ff-ff-ff -> 18446744073709551615 (on x64 only) |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3254 |
testingRegistryPath valueNamed: 'qword_max' put: 18446744073709551700. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3255 |
readData := testingRegistryPath valueNamed: 'qword_max'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3256 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3257 |
self assert: readData ~= 18446744073709551700. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3258 |
"/ when you try to store more than maximum value you will get only the maximum losing the rest |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3259 |
self assert: readData = 18446744073709551615. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3260 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3261 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3262 |
self run:#testWriteValueNamedPut_REG_QWORD_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3263 |
self new testWriteValueNamedPut_REG_QWORD_02 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3264 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3265 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3266 |
"Created: / 04-12-2018 / 11:02:20 / svestkap" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3267 |
"Modified: / 07-12-2018 / 15:12:12 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3268 |
"Modified (format): / 01-02-2019 / 14:36:06 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3269 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3270 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3271 |
testWriteValueNamedPut_REG_QWORD_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3272 |
"Testing if new QWORD value name is written and read correctly from REG_QWORD (valueNamed:put: and valueNamed:)" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3273 |
| readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3274 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3275 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3276 |
testingRegistryPath valueNamed: 'qword_new_testingル' put: 18446744073709551101. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3277 |
readData := testingRegistryPath valueNamed: 'qword_new_testingル'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3278 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3279 |
self assert: readData = 18446744073709551101. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3280 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3281 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3282 |
self run:#testWriteValueNamedPut_REG_QWORD_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3283 |
self new testWriteValueNamedPut_REG_QWORD_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3284 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3285 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3286 |
"Created: / 07-12-2018 / 15:05:48 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3287 |
"Modified: / 12-02-2019 / 14:56:27 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3288 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3289 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3290 |
testWriteValueNamedPut_REG_QWORD_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3291 |
"Testing if max QWORD value is written and read correctly from REG_QWORD (valueNamed:put: and valueNamed:) |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3292 |
with registry type and size check. Storing maximum QWORD value (0xffffffffffffffff -> 18446744073709551615(x64))" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3293 |
| readData testingRegistryPath registryType | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3294 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3295 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3296 |
testingRegistryPath valueNamed: 'qword_max' put: 18446744073709551615. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3297 |
readData := testingRegistryPath valueNamed: 'qword_max'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3298 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3299 |
registryType := testingRegistryPath valueTypeAndSize: 'qword_max'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3300 |
self assert: registryType keys first equals: #REG_QWORD. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3301 |
self assert: registryType first equals: 8. "/ 64 bits = 8 bytes |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3302 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3303 |
self assert: readData = 18446744073709551615. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3304 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3305 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3306 |
self run:#testWriteValueNamedPut_REG_QWORD_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3307 |
self new testWriteValueNamedPut_REG_QWORD_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3308 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3309 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3310 |
"Created: / 12-12-2018 / 12:08:35 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3311 |
"Modified (comment): / 01-02-2019 / 14:36:34 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3312 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3313 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3314 |
testWriteValueNamedPut_REG_QWORD_05 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3315 |
"Testing if max QWORD value is written and read correctly from REG_QWORD (valueNamed:put: and valueNamed:) |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3316 |
with registry type and size check. Notice the #REG_SZ -> #REG_QWORD change. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3317 |
Storing maximum QWORD value (0xffffffffffffffff -> 18446744073709551615(x64))" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3318 |
| readData testingRegistryPath registryType | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3319 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3320 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3321 |
"/ checking type and size |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3322 |
registryType := testingRegistryPath valueTypeAndSize: ' ř ž č ル. '. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3323 |
self assert: registryType keys first equals: #REG_SZ. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3324 |
self assert: registryType first equals: 33. "/ string size |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3325 |
"/ checking the value |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3326 |
readData := testingRegistryPath valueNamed: ' ř ž č ル. '. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3327 |
self assert: readData = 'Testing Unicode chars ř ž č ルすしかき'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3328 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3329 |
"/ saving into registry |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3330 |
testingRegistryPath valueNamed: ' ř ž č ル. ' put: 18446744073709551615. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3331 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3332 |
registryType := testingRegistryPath valueTypeAndSize: ' ř ž č ル. '. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3333 |
self assert: registryType keys first equals: #REG_QWORD. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3334 |
self assert: registryType first equals: 8. "/ 64 bits = 8 bytes |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3335 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3336 |
readData := testingRegistryPath valueNamed: ' ř ž č ル. '. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3337 |
self assert: readData = 18446744073709551615. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3338 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3339 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3340 |
self run:#testWriteValueNamedPut_REG_QWORD_05 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3341 |
self new testWriteValueNamedPut_REG_QWORD_05 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3342 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3343 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3344 |
"Created: / 12-12-2018 / 13:38:31 / svestkap" |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3345 |
"Modified (comment): / 01-02-2019 / 14:37:40 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3346 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3347 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3348 |
testWriteValueNamedPut_REG_SZ_01 |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3349 |
"Testing if REG_SZ values are written correctly via valueNamed:put:. |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3350 |
Data is written and read back again." |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3351 |
| readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3352 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3353 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3354 |
testingRegistryPath valueNamed: 'bledesu' put: 'řeřicha - ルすしかき'. |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3355 |
readData := testingRegistryPath valueNamed: 'bledesu'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3356 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3357 |
self assert: readData = 'řeřicha - ルすしかき'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3358 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3359 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3360 |
self run:#testWriteValueNamedPut_REG_SZ_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3361 |
self new testWriteValueNamedPut_REG_SZ_01 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3362 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3363 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3364 |
"Created: / 26-11-2018 / 09:51:58 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3365 |
"Modified: / 12-02-2019 / 14:56:40 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3366 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3367 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3368 |
testWriteValueNamedPut_REG_SZ_02 |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3369 |
"Testing if REG_SZ values are written correctly via valueNamed:put:. Data is written and read back again. |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3370 |
Note: this is testing Unicode with spaces - probably the worst combination" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3371 |
| readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3372 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3373 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3374 |
testingRegistryPath valueNamed: 'しかき ' put: 'řeřicha - ルすしかき'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3375 |
readData := testingRegistryPath valueNamed: 'しかき '. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3376 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3377 |
self assert: readData = 'řeřicha - ルすしかき'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3378 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3379 |
" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3380 |
self run:#testReadValueNamed_REG_SZ_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3381 |
self new testReadValueNamed_REG_SZ_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3382 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3383 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3384 |
"Created: / 26-11-2018 / 14:10:35 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3385 |
"Modified: / 12-02-2019 / 14:56:44 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3386 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3387 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3388 |
testWriteValueNamedPut_REG_SZ_03 |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3389 |
"Testing if REG_SZ empty value is written correctly via valueNamed:put:. Data is written and read back again. |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3390 |
Note: this is testing Unicode with spaces - probably the worst combination" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3391 |
| readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3392 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3393 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3394 |
testingRegistryPath valueNamed: 'しかき ' put: ''. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3395 |
readData := testingRegistryPath valueNamed: 'しかき '. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3396 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3397 |
self assert: readData = '' |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3398 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3399 |
" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3400 |
self run:#testWriteValueNamedPut_REG_SZ_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3401 |
self new testWriteValueNamedPut_REG_SZ_03 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3402 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3403 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3404 |
"Created: / 05-12-2018 / 10:16:59 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3405 |
"Modified: / 12-02-2019 / 14:56:47 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3406 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3407 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3408 |
testWriteValueNamedPut_REG_SZ_04 |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3409 |
"Testing if REG_SZ empty value is written correctly via valueNamed:put:. Data is written and read back again. |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3410 |
Note: this is testing Unicode with spaces - probably the worst combination" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3411 |
| readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3412 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3413 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3414 |
testingRegistryPath valueNamed: 'bledesu' put: ''. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3415 |
readData := testingRegistryPath valueNamed: 'bledesu'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3416 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3417 |
self assert: readData = '' |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3418 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3419 |
" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3420 |
self run:#testWriteValueNamedPut_REG_SZ_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3421 |
self new testWriteValueNamedPut_REG_SZ_04 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3422 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3423 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3424 |
"Created: / 05-12-2018 / 10:22:39 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3425 |
"Modified: / 12-02-2019 / 14:56:51 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3426 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3427 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3428 |
testWriteValueNamedPut_REG_SZ_05 |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3429 |
"Testing if REG_SZ completely new value is written correctly via valueNamed:put:. |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3430 |
Data is written and read back again." |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3431 |
| readData testingRegistryPath | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3432 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3433 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3434 |
testingRegistryPath valueNamed: 'Newル guy' put: 'Singルing'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3435 |
readData := testingRegistryPath valueNamed: 'Newル guy'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3436 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3437 |
self assert: readData = 'Singルing' |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3438 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3439 |
" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3440 |
self run:#testWriteValueNamedPut_REG_SZ_05 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3441 |
self new testWriteValueNamedPut_REG_SZ_05 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3442 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3443 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3444 |
"Created: / 07-12-2018 / 15:03:05 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3445 |
"Modified: / 12-02-2019 / 14:56:54 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3446 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3447 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3448 |
testWriteValueNamedPut_REG_SZ_06 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3449 |
"Testing if REG_SZ completely new value is written correctly via valueNamed:put: with registry type and size check |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3450 |
Data is written and read back again." |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3451 |
| readData testingRegistryPath registryType | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3452 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3453 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3454 |
testingRegistryPath valueNamed: 'Newル guy' put: 'Singルing'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3455 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3456 |
registryType := testingRegistryPath valueTypeAndSize: 'Newル guy'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3457 |
self assert: registryType keys first equals: #REG_SZ. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3458 |
self assert: registryType first equals: 8. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3459 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3460 |
readData := testingRegistryPath valueNamed: 'Newル guy'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3461 |
self assert: readData = 'Singルing' |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3462 |
|
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3463 |
" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3464 |
self run:#testWriteValueNamedPut_REG_SZ_06 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3465 |
self new testWriteValueNamedPut_REG_SZ_06 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3466 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3467 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3468 |
"Created: / 12-12-2018 / 12:39:52 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3469 |
"Modified: / 12-02-2019 / 14:56:58 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3470 |
! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3471 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3472 |
testWriteValueNamedPut_REG_SZ_07 |
2086
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3473 |
"Testing if REG_SZ values are written correctly via valueNamed:put:. Data is written and read back again. |
677b483367cf
Issue #250: and #252: complete list of regression tests for Reading, Writing, Creating, Opeing, Deleting windows registry
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2085
diff
changeset
|
3474 |
Note: the registry type change: #REG_MULTI_SZ to #REG_SZ." |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3475 |
| readData testingRegistryPath registryType | |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3476 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3477 |
testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3478 |
"/ reading type and size |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3479 |
registryType := testingRegistryPath valueTypeAndSize: 'ř ž č ルすしか'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3480 |
self assert: registryType keys first equals: #REG_MULTI_SZ. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3481 |
self assert: registryType first equals: 974. "/ REG_MULTI_SZ size in bytes |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3482 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3483 |
"/ saving data (unicode string) into registry |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3484 |
testingRegistryPath valueNamed: 'bledesu' put: 'řeřicha - ルすしかき'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3485 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3486 |
registryType := testingRegistryPath valueTypeAndSize: 'bledesu'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3487 |
self assert: registryType keys first equals: #REG_SZ. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3488 |
self assert: registryType first equals: 15. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3489 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3490 |
readData := testingRegistryPath valueNamed: 'bledesu'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3491 |
self assert: readData = 'řeřicha - ルすしかき'. |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3492 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3493 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3494 |
self run:#testWriteValueNamedPut_REG_SZ_07 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3495 |
self new testWriteValueNamedPut_REG_SZ_07 |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3496 |
" |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3497 |
|
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3498 |
"Created: / 12-12-2018 / 13:48:00 / svestkap" |
2087
43b964e25f8a
Issue #250: and #252: Removing the REG_QWORD the x64 architecture limitation
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2086
diff
changeset
|
3499 |
"Modified: / 12-02-2019 / 14:57:02 / svestkap" |
2085
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3500 |
! ! |
823598772842
Issue #252: Smalltak/X is writing Windows Registry only in ASCII but registry is UTF16
Patrik Svestka <patrik.svestka@gmail.com>
parents:
2081
diff
changeset
|
3501 |
|
344 | 3502 |
!Win32OperatingSystemTest class methodsFor:'documentation'! |
3503 |
||
3504 |
version |
|
3505 |
^ '$Header$' |
|
1566
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
3506 |
! |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
3507 |
|
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
3508 |
version_HG |
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
3509 |
|
2ca58098256d
Issue #109: Added tests for registry key creation / deletion
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1500
diff
changeset
|
3510 |
^ '$Changeset: <not expanded> $' |
344 | 3511 |
! ! |
1161 | 3512 |