| <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_T2</p> |
| <div id='console'></div> |
| <script> |
| try { |
| |
| /** |
| * @name: S7.6_A4.2_T2; |
| * @section: 7.6; |
| * @assertion: Correct interpretation of RUSSIAN ALPHABET; |
| * @description: Check RUSSIAN SMALL ALPHABET; |
| */ |
| |
| //CHECK#а-я |
| \u0430 = 1; |
| if (а !== 1) { |
| testFailed('#а'); |
| } |
| \u0431 = 1; |
| if (б !== 1) { |
| testFailed('#б'); |
| } |
| \u0432 = 1; |
| if (в !== 1) { |
| testFailed('#в'); |
| } |
| \u0433 = 1; |
| if (г !== 1) { |
| testFailed('#г'); |
| } |
| \u0434 = 1; |
| if (д !== 1) { |
| testFailed('#д'); |
| } |
| \u0435 = 1; |
| if (е !== 1) { |
| testFailed('#е'); |
| } |
| \u0436 = 1; |
| if (ж !== 1) { |
| testFailed('#ж'); |
| } |
| \u0437 = 1; |
| if (з !== 1) { |
| testFailed('#з'); |
| } |
| \u0438 = 1; |
| if (и !== 1) { |
| testFailed('#и'); |
| } |
| \u0439 = 1; |
| if (й !== 1) { |
| testFailed('#й'); |
| } |
| \u043A = 1; |
| if (к !== 1) { |
| testFailed('#к'); |
| } |
| \u043B = 1; |
| if (л !== 1) { |
| testFailed('#л'); |
| } |
| \u043C = 1; |
| if (м !== 1) { |
| testFailed('#м'); |
| } |
| \u043D = 1; |
| if (н !== 1) { |
| testFailed('#н'); |
| } |
| \u043E = 1; |
| if (о !== 1) { |
| testFailed('#о'); |
| } |
| \u043F = 1; |
| if (п !== 1) { |
| testFailed('#п'); |
| } |
| \u0440 = 1; |
| if (р !== 1) { |
| testFailed('#р'); |
| } |
| \u0441 = 1; |
| if (с !== 1) { |
| testFailed('#с'); |
| } |
| \u0442 = 1; |
| if (т !== 1) { |
| testFailed('#т'); |
| } |
| \u0443 = 1; |
| if (у !== 1) { |
| testFailed('#у'); |
| } |
| \u0444 = 1; |
| if (ф !== 1) { |
| testFailed('#ф'); |
| } |
| \u0445 = 1; |
| if (х !== 1) { |
| testFailed('#х'); |
| } |
| \u0446 = 1; |
| if (ц !== 1) { |
| testFailed('#ц'); |
| } |
| \u0447 = 1; |
| if (ч !== 1) { |
| testFailed('#ч'); |
| } |
| \u0448 = 1; |
| if (ш !== 1) { |
| testFailed('#ш'); |
| } |
| \u0449 = 1; |
| if (щ !== 1) { |
| testFailed('#щ'); |
| } |
| \u044A = 1; |
| if (ъ !== 1) { |
| testFailed('#ъ'); |
| } |
| \u044B = 1; |
| if (ы !== 1) { |
| testFailed('#ы'); |
| } |
| \u044C = 1; |
| if (ь !== 1) { |
| testFailed('#ь'); |
| } |
| \u044D = 1; |
| if (э !== 1) { |
| testFailed('#э'); |
| } |
| \u044E = 1; |
| if (ю !== 1) { |
| testFailed('#ю'); |
| } |
| \u044F = 1; |
| if (я !== 1) { |
| testFailed('#я'); |
| } |
| \u0451 = 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> |