Chromium Code Reviews| Index: LayoutTests/fast/text/unmatched-surrogate-pair.html |
| diff --git a/LayoutTests/fast/text/unmatched-surrogate-pair.html b/LayoutTests/fast/text/unmatched-surrogate-pair.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ab6a832487b59b34b779785bceab7986af688b21 |
| --- /dev/null |
| +++ b/LayoutTests/fast/text/unmatched-surrogate-pair.html |
| @@ -0,0 +1,27 @@ |
| +<!DOCTYPE html> |
| +<html> |
| + <head> |
| + <title>Tests handling of unmatched surrogate pairs</title> |
| + <meta charset="utf16-be"> |
| + </head> |
| + <body> |
| + <script> |
| + if (window.testRunner) |
| + testRunner.dumpAsText(); |
| + |
| + function appendLine(str) |
| + { |
| + var line = document.createElement('div'); |
| + line.appendChild(document.createTextNode(str)); |
| + document.body.appendChild(line); |
| + } |
| + |
| + var globe = '\u{1F30E}'; |
| + appendLine('Full codepoint, "\u{1F30E}". Prints a globle glyph.'); |
|
bsittler
2015/08/11 18:11:00
tiny typo: s/globle/globe
|
| + appendLine('First part of surrogate pair, "' + globe.substr(0, 1) + |
| + '". Should print replacement character and rest of run.'); |
| + appendLine('Second part of surrogate pair, "' + globe.substr(1, 1) + |
| + '". Should print replacement character and rest of run.'); |
| + </script> |
| + </body> |
| +</html> |