Index: third_party/WebKit/LayoutTests/editing/selection/modify_move/move-by-character-crash-test-textarea.html |
diff --git a/third_party/WebKit/LayoutTests/editing/selection/move-by-character-crash-test-textarea.html b/third_party/WebKit/LayoutTests/editing/selection/modify_move/move-by-character-crash-test-textarea.html |
similarity index 70% |
rename from third_party/WebKit/LayoutTests/editing/selection/move-by-character-crash-test-textarea.html |
rename to third_party/WebKit/LayoutTests/editing/selection/modify_move/move-by-character-crash-test-textarea.html |
index 63fb48c76c50606c7aafce023bda7d9ccd1d405a..5fdbde7f8b6f9f764b4e63396b98971e5ea05686 100644 |
--- a/third_party/WebKit/LayoutTests/editing/selection/move-by-character-crash-test-textarea.html |
+++ b/third_party/WebKit/LayoutTests/editing/selection/modify_move/move-by-character-crash-test-textarea.html |
@@ -1,11 +1,12 @@ |
<!DOCTYPE html> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
<html> |
<body> |
-This test sets caret at the beginning of backward text and moving the character to left and right. WebKit should not crash and you should see PASS below: |
<textarea id="editor">‮LTR |
</textarea> |
<script> |
-onload = function() { |
+test(function() { |
var sel = window.getSelection(); |
sel.empty(); |
var test = document.getElementById("editor"); |
@@ -20,12 +21,7 @@ onload = function() { |
test.selectionEnd = 1; |
getSelection().modify("move", "right", "character"); |
getSelection().modify("move", "right", "character"); |
- document.body.innerHTML = "PASS"; |
-}; |
- |
-if (window.testRunner) |
- testRunner.dumpAsText(); |
- |
+}, "This test sets caret at the beginning of backward text and moving the character to left and right."); |
</script> |
</body> |
</html> |