| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <html> |
| <head> |
| <script src="../../resources/js-test-pre.js"></script> |
| <script> |
| |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| |
| function testEntity(entity) |
| { |
| var element = document.createElement("div") |
| element.innerHTML = entity; |
| var string = element.firstChild.data; |
| var result = ""; |
| for (var i = 0; i < string.length; ++i) { |
| if (result.length) |
| result += ", " |
| result += "0x" + string.charCodeAt(i).toString(16).toUpperCase(); |
| } |
| return result; |
| } |
| |
| shouldBeEqualToString("testEntity('�')", "0xFFFD"); |
| shouldBeEqualToString("testEntity('𐀀')", "0xD800, 0xDC00"); |
| shouldBeEqualToString("testEntity('')", "0xDBFF, 0xDFFF"); |
| shouldBeEqualToString("testEntity('�')", "0xFFFD"); |
| shouldBeEqualToString("testEntity('�')", "0xFFFD"); |
| shouldBeEqualToString("testEntity('�')", "0xFFFD"); |
| shouldBeEqualToString("testEntity('�')", "0xFFFD"); |
| shouldBeEqualToString("testEntity('�')", "0xFFFD"); |
| shouldBeEqualToString("testEntity('�')", "0xFFFD"); |
| |
| shouldBeEqualToString("testEntity('𐀀')", "0xD800, 0xDC00"); |
| shouldBeEqualToString("testEntity('�')", "0xFFFD"); |
| |
| shouldBeEqualToString("testEntity('')", "0x1"); |
| shouldBeEqualToString("testEntity('')", "0xB"); |
| shouldBeEqualToString("testEntity('o')", "0x6F"); |
| shouldBeEqualToString("testEntity('ї')", "0x457"); |
| shouldBeEqualToString("testEntity('⭧')", "0x2B67"); |
| shouldBeEqualToString("testEntity('𛈇')", "0xD82C, 0xDE07"); |
| shouldBeEqualToString("testEntity('􏑇')", "0xDBFD, 0xDC47"); |
| shouldBeEqualToString("testEntity('�')", "0xFFFD"); |
| shouldBeEqualToString("testEntity('�')", "0xFFFD"); |
| shouldBeEqualToString("testEntity('�')", "0xFFFD"); |
| shouldBeEqualToString("testEntity('�')", "0xFFFD"); |
| |
| shouldBeEqualToString("testEntity('')", "0x1"); |
| shouldBeEqualToString("testEntity('	')", "0x9"); |
| shouldBeEqualToString("testEntity('
')", "0xA"); |
| shouldBeEqualToString("testEntity('')", "0xB"); |
| shouldBeEqualToString("testEntity('')", "0xC"); |
| shouldBeEqualToString("testEntity('
')", "0xD"); |
| shouldBeEqualToString("testEntity('')", "0x7F"); |
| shouldBeEqualToString("testEntity('')", "0x81"); |
| shouldBeEqualToString("testEntity('')", "0x8D"); |
| shouldBeEqualToString("testEntity('')", "0x8F"); |
| shouldBeEqualToString("testEntity('')", "0x90"); |
| shouldBeEqualToString("testEntity('')", "0x9D"); |
| |
| shouldBeEqualToString("testEntity('€')", "0x20AC"); |
| shouldBeEqualToString("testEntity('‚')", "0x201A"); |
| shouldBeEqualToString("testEntity('ƒ')", "0x192"); |
| shouldBeEqualToString("testEntity('„')", "0x201E"); |
| shouldBeEqualToString("testEntity('…')", "0x2026"); |
| shouldBeEqualToString("testEntity('†')", "0x2020"); |
| shouldBeEqualToString("testEntity('‡')", "0x2021"); |
| shouldBeEqualToString("testEntity('ˆ')", "0x2C6"); |
| shouldBeEqualToString("testEntity('‰')", "0x2030"); |
| shouldBeEqualToString("testEntity('Š')", "0x160"); |
| shouldBeEqualToString("testEntity('‹')", "0x2039"); |
| shouldBeEqualToString("testEntity('Œ')", "0x152"); |
| shouldBeEqualToString("testEntity('Ž')", "0x17D"); |
| shouldBeEqualToString("testEntity('‘')", "0x2018"); |
| shouldBeEqualToString("testEntity('’')", "0x2019"); |
| shouldBeEqualToString("testEntity('“')", "0x201C"); |
| shouldBeEqualToString("testEntity('”')", "0x201D"); |
| shouldBeEqualToString("testEntity('•')", "0x2022"); |
| shouldBeEqualToString("testEntity('–')", "0x2013"); |
| shouldBeEqualToString("testEntity('—')", "0x2014"); |
| shouldBeEqualToString("testEntity('˜')", "0x2DC"); |
| shouldBeEqualToString("testEntity('™')", "0x2122"); |
| shouldBeEqualToString("testEntity('š')", "0x161"); |
| shouldBeEqualToString("testEntity('›')", "0x203A"); |
| shouldBeEqualToString("testEntity('œ')", "0x153"); |
| shouldBeEqualToString("testEntity('ž')", "0x17E"); |
| shouldBeEqualToString("testEntity('Ÿ')", "0x178"); |
| |
| </script> |
| <script src="../../resources/js-test-post.js"></script> |
| </head> |
| <body> |
| </body> |
| </html> |