|
1 ############################################################## |
|
2 # Check if XML file coded with UTF8 is parsed correctly. |
|
3 ############################################################## |
|
4 |
|
5 [Test] |
|
6 title encoding_UTF8 |
|
7 create xmlengtester test |
|
8 test ParseFile c:\testing\data\xmleng\efute\input\Encoding\XML_encoding_001.xml |
|
9 test SaveXmlToFile c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_001.xml |
|
10 test CompareFiles c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_001.xml c:\testing\data\xmleng\efute\pattern\Encoding\DOM_XML_encoding_001.ref |
|
11 delete test |
|
12 [Endtest] |
|
13 ############################################################## |
|
14 # Check if XML file coded with UTF16 is parsed correctly. |
|
15 ############################################################## |
|
16 |
|
17 [Test] |
|
18 title encoding_UTF16 |
|
19 create xmlengtester test |
|
20 test ParseFile c:\testing\data\xmleng\efute\input\Encoding\XML_encoding_002.xml |
|
21 test SaveXmlToFile c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_002.xml |
|
22 test CompareFiles c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_002.xml c:\testing\data\xmleng\efute\pattern\Encoding\DOM_XML_encoding_002.ref |
|
23 delete test |
|
24 [Endtest] |
|
25 ############################################################## |
|
26 # Check if XML file coded with UTF16 BE is parsed correctly. |
|
27 ############################################################## |
|
28 |
|
29 [Test] |
|
30 title encoding_UTF16BE |
|
31 create xmlengtester test |
|
32 test ParseFile c:\testing\data\xmleng\efute\input\Encoding\XML_encoding_003.xml |
|
33 test SaveXmlToFile c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_003.xml |
|
34 test CompareFiles c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_003.xml c:\testing\data\xmleng\efute\pattern\Encoding\DOM_XML_encoding_003.ref |
|
35 delete test |
|
36 [Endtest] |
|
37 ############################################################## |
|
38 # Check if XML file coded with UTF16 LE is parsed correctly. |
|
39 ############################################################## |
|
40 |
|
41 [Test] |
|
42 title encoding_UTF16LE |
|
43 create xmlengtester test |
|
44 test ParseFile c:\testing\data\xmleng\efute\input\Encoding\XML_encoding_004.xml |
|
45 test SaveXmlToFile c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_004.xml |
|
46 test CompareFiles c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_004.xml c:\testing\data\xmleng\efute\pattern\Encoding\DOM_XML_encoding_004.ref |
|
47 delete test |
|
48 [Endtest] |
|
49 ############################################################## |
|
50 # Check if XML file coded with ISO-8859-1 is parsed correctly. |
|
51 ############################################################## |
|
52 |
|
53 [Test] |
|
54 title encoding_ISO-8859-1 |
|
55 create xmlengtester test |
|
56 test ParseFile c:\testing\data\xmleng\efute\input\Encoding\XML_encoding_005.xml |
|
57 test SaveXmlToFile c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_005.xml |
|
58 test CompareFiles c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_005.xml c:\testing\data\xmleng\efute\pattern\Encoding\DOM_XML_encoding_005.ref |
|
59 delete test |
|
60 [Endtest] |
|
61 ############################################################## |
|
62 # Check if XML file coded with ASCII is parsed correctly. |
|
63 ############################################################## |
|
64 |
|
65 [Test] |
|
66 title encoding_ASCII |
|
67 create xmlengtester test |
|
68 test ParseFile c:\testing\data\xmleng\efute\input\Encoding\XML_encoding_006.xml |
|
69 test SaveXmlToFile c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_006.xml |
|
70 test CompareFiles c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_006.xml c:\testing\data\xmleng\efute\pattern\Encoding\DOM_XML_encoding_006.ref |
|
71 delete test |
|
72 [Endtest] |
|
73 ############################################################## |
|
74 # Check if correct error is generated when wrong encodingis |
|
75 # set. |
|
76 ############################################################## |
|
77 |
|
78 [Test] |
|
79 title encoding_WRONG(ISO-8859-2) |
|
80 create xmlengtester test |
|
81 test ParseFile c:\testing\data\xmleng\efute\input\Encoding\XML_encoding_007.xml |
|
82 test SaveXmlToFile c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_007.xml |
|
83 test CompareFiles c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_007.xml c:\testing\data\xmleng\efute\pattern\Encoding\DOM_XML_encoding_007.ref |
|
84 delete test |
|
85 [Endtest] |
|
86 ############################################################## |
|
87 # Check if file with supported encoding but different then in |
|
88 # xml prolog is processed |
|
89 ############################################################## |
|
90 |
|
91 [Test] |
|
92 title encoding_differentCodeThanProlog |
|
93 create xmlengtester test |
|
94 test ParseFile c:\testing\data\xmleng\efute\input\Encoding\XML_encoding_008.xml |
|
95 test SaveXmlToFile c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_008.xml |
|
96 test CompareFiles c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_008.xml c:\testing\data\xmleng\efute\pattern\Encoding\DOM_XML_encoding_008.ref |
|
97 delete test |
|
98 [Endtest] |
|
99 ############################################################## |
|
100 # Check if file without xml prolog is processed. |
|
101 ############################################################## |
|
102 |
|
103 [Test] |
|
104 title encoding_NoProlog(ISO) |
|
105 create xmlengtester test |
|
106 test ParseFile c:\testing\data\xmleng\efute\input\Encoding\XML_encoding_009.xml |
|
107 test SaveXmlToFile c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_009.xml |
|
108 test CompareFiles c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_009.xml c:\testing\data\xmleng\efute\pattern\Encoding\DOM_XML_encoding_009.ref |
|
109 delete test |
|
110 [Endtest] |
|
111 ############################################################## |
|
112 # Check if file without xml prolog is processed. |
|
113 ############################################################## |
|
114 |
|
115 [Test] |
|
116 title encoding_NoProlog(UTF-16BE) |
|
117 create xmlengtester test |
|
118 test ParseFile c:\testing\data\xmleng\efute\input\Encoding\XML_encoding_010.xml |
|
119 test SaveXmlToFile c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_010.xml |
|
120 test CompareFiles c:\testing\data\xmleng\efute\output\Encoding\DOM_XML_encoding_010.xml c:\testing\data\xmleng\efute\pattern\Encoding\DOM_XML_encoding_010.ref |
|
121 delete test |
|
122 [Endtest] |