| <html> |
| <head> |
| <meta charset='utf-8'> |
| <style> |
| .pass { |
| font-weight: bold; |
| color: green; |
| } |
| .fail { |
| font-weight: bold; |
| color: red; |
| } |
| </style> |
| |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| |
| function SputnikError(message) |
| { |
| this.message = message; |
| } |
| |
| SputnikError.prototype.toString = function () |
| { |
| return 'SputnikError: ' + this.message; |
| }; |
| |
| var sputnikException; |
| |
| function testPrint(msg) |
| { |
| var span = document.createElement("span"); |
| document.getElementById("console").appendChild(span); // insert it first so XHTML knows the namespace |
| span.innerHTML = msg + '<br />'; |
| } |
| |
| function escapeHTML(text) |
| { |
| return text.toString().replace(/&/g, "&").replace(/</g, "<"); |
| } |
| |
| function printTestPassed(msg) |
| { |
| testPrint('<span><span class="pass">PASS</span> ' + escapeHTML(msg) + '</span>'); |
| } |
| |
| function printTestFailed(msg) |
| { |
| testPrint('<span><span class="fail">FAIL</span> ' + escapeHTML(msg) + '</span>'); |
| } |
| |
| function testFailed(msg) |
| { |
| throw new SputnikError(msg); |
| } |
| |
| var successfullyParsed = false; |
| </script> |
| |
| </head> |
| <body> |
| <p>S7.6_A4.2_T1</p> |
| <div id='console'></div> |
| <script> |
| try { |
| |
| /** |
| * @name: S7.6_A4.2_T1; |
| * @section: 7.6; |
| * @assertion: Correct interpretation of RUSSIAN ALPHABET; |
| * @description: Check RUSSIAN CAPITAL ALPHABET; |
| */ |
| |
| //CHECK#А-Я |
| \u0410 = 1; |
| if (А !== 1) { |
| testFailed('#А'); |
| } |
| \u0411 = 1; |
| if (Б !== 1) { |
| testFailed('#Б'); |
| } |
| \u0412 = 1; |
| if (В !== 1) { |
| testFailed('#В'); |
| } |
| \u0413 = 1; |
| if (Г !== 1) { |
| testFailed('#Г'); |
| } |
| \u0414 = 1; |
| if (Д !== 1) { |
| testFailed('#Д'); |
| } |
| \u0415 = 1; |
| if (Е !== 1) { |
| testFailed('#Е'); |
| } |
| \u0416 = 1; |
| if (Ж !== 1) { |
| testFailed('#Ж'); |
| } |
| \u0417 = 1; |
| if (З !== 1) { |
| testFailed('#З'); |
| } |
| \u0418 = 1; |
| if (И !== 1) { |
| testFailed('#И'); |
| } |
| \u0419 = 1; |
| if (Й !== 1) { |
| testFailed('#Й'); |
| } |
| \u041A = 1; |
| if (К !== 1) { |
| testFailed('#К'); |
| } |
| \u041B = 1; |
| if (Л !== 1) { |
| testFailed('#Л'); |
| } |
| \u041C = 1; |
| if (М !== 1) { |
| testFailed('#М'); |
| } |
| \u041D = 1; |
| if (Н !== 1) { |
| testFailed('#Н'); |
| } |
| \u041E = 1; |
| if (О !== 1) { |
| testFailed('#О'); |
| } |
| \u041F = 1; |
| if (П !== 1) { |
| testFailed('#П'); |
| } |
| \u0420 = 1; |
| if (Р !== 1) { |
| testFailed('#Р'); |
| } |
| \u0421 = 1; |
| if (С !== 1) { |
| testFailed('#С'); |
| } |
| \u0422 = 1; |
| if (Т !== 1) { |
| testFailed('#Т'); |
| } |
| \u0423 = 1; |
| if (У !== 1) { |
| testFailed('#У'); |
| } |
| \u0424 = 1; |
| if (Ф !== 1) { |
| testFailed('#Ф'); |
| } |
| \u0425 = 1; |
| if (Х !== 1) { |
| testFailed('#Х'); |
| } |
| \u0426 = 1; |
| if (Ц !== 1) { |
| testFailed('#Ц'); |
| } |
| \u0427 = 1; |
| if (Ч !== 1) { |
| testFailed('#Ч'); |
| } |
| \u0428 = 1; |
| if (Ш !== 1) { |
| testFailed('#Ш'); |
| } |
| \u0429 = 1; |
| if (Щ !== 1) { |
| testFailed('#Щ'); |
| } |
| \u042A = 1; |
| if (Ъ !== 1) { |
| testFailed('#Ъ'); |
| } |
| \u042B = 1; |
| if (Ы !== 1) { |
| testFailed('#Ы'); |
| } |
| \u042C = 1; |
| if (Ь !== 1) { |
| testFailed('#Ь'); |
| } |
| \u042D = 1; |
| if (Э !== 1) { |
| testFailed('#Э'); |
| } |
| \u042E = 1; |
| if (Ю !== 1) { |
| testFailed('#Ю'); |
| } |
| \u042F = 1; |
| if (Я !== 1) { |
| testFailed('#Я'); |
| } |
| \u0401 = 1; |
| if (Ё !== 1) { |
| testFailed('#Ё'); |
| } |
| |
| } catch (ex) { |
| sputnikException = ex; |
| } |
| |
| var successfullyParsed = true; |
| </script> |
| |
| <script> |
| if (!successfullyParsed) |
| printTestFailed('successfullyParsed is not set'); |
| else if (sputnikException) |
| printTestFailed(sputnikException); |
| else |
| printTestPassed(""); |
| testPrint('<br /><span class="pass">TEST COMPLETE</span>'); |
| </script> |
| </body> |
| </html> |