| Index: third_party/WebKit/LayoutTests/editing/deleting/delete-ligature-001.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/deleting/delete-ligature-001.html b/third_party/WebKit/LayoutTests/editing/deleting/delete-ligature-001.html
|
| index 60be7d7016d448e0ca93ef6a9eff2edef0aad8b6..f55635977fdfdccd44b8e39fcc58aff7e0dad5b4 100644
|
| --- a/third_party/WebKit/LayoutTests/editing/deleting/delete-ligature-001.html
|
| +++ b/third_party/WebKit/LayoutTests/editing/deleting/delete-ligature-001.html
|
| @@ -1,40 +1,15 @@
|
| -<html xmlns="http://www.w3.org/1999/xhtml">
|
| - <head>
|
| - <script src="../editing.js" language="javascript" type="text/javascript" ></script>
|
| - <script language="javascript" type="text/javascript">
|
| - function log(str) {
|
| - var li = document.createElement("li");
|
| - li.appendChild(document.createTextNode(str));
|
| - var console = document.getElementById("console");
|
| - console.appendChild(li);
|
| - }
|
| - function sendBackwardDeleteKey() {
|
| - if (window.eventSender)
|
| - eventSender.keyDown("Backspace", null);
|
| - }
|
| - function editingTest() {
|
| - if (window.testRunner)
|
| - window.testRunner.dumpAsText();
|
| - var textarea = document.getElementById("test");
|
| - textarea.focus();
|
| - typeCharacterCommand(String.fromCharCode(0x0E27));
|
| - typeCharacterCommand(String.fromCharCode(0x0E31));
|
| - sendBackwardDeleteKey();
|
| - if (textarea.value == "\u0E27")
|
| - log("Succeeded.");
|
| - else
|
| - log("Failed. Actual: \"" + textarea.value + "\", Expected: \"\u0E27\"");
|
| - }
|
| - </script>
|
| - <title>Editing Test (Deleting a ligature)</title>
|
| - </head>
|
| - <body>
|
| - <p>This test tests whether the BackSpace key deletes only the last character of a ligature "วั".</p>
|
| - <p>If this test succeeds, you can see "ว" (U+0E27) and a string "succeeded" below.</p>
|
| - <textarea id="test" rows="1" cols="40"></textarea>
|
| - <ul id="console"></ul>
|
| - <script language="javascript" type="text/javascript">
|
| - runEditingTest();
|
| - </script>
|
| - </body>
|
| -</html>
|
| +<!doctype html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<textarea>วั</textarea>
|
| +<script>
|
| +test(() => {
|
| + assert_not_equals(window.eventSender, undefined,
|
| + 'This test requires window.eventSender');
|
| + const textarea = document.querySelector('textarea');
|
| + textarea.setSelectionRange(2, 2);
|
| + textarea.focus();
|
| + eventSender.keyDown('Backspace', null);
|
| + assert_equals(textarea.value, '\u0E27');
|
| +}, 'Backspace key to delete a last character of ligature U+0E27 and U+0E31');
|
| +</script>
|
|
|