Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/modify_move/move-by-character-crash-test-textarea.html

Issue 1809963002: [Editing][CodeHealth] Use w3c testharness in editing/seletion/move-by-* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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">&#8238;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>

Powered by Google App Engine
This is Rietveld 408576698