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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/textarea-textlength.html

Issue 1524663002: Move textarea-related tests to fast/forms/textarea/, part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/fast/forms/textarea-textlength.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/textarea-textlength.html b/third_party/WebKit/LayoutTests/fast/forms/textarea-textlength.html
deleted file mode 100644
index 8d37f25927ec06da4379e80c95cc98be6a821ef3..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/textarea-textlength.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></div>
-<script>
-description('Test for HTMLTextAreaElement.textLength');
-
-var textArea = document.createElement('textarea');
-document.body.appendChild(textArea);
-shouldBe('textArea.textLength', '0');
-
-textArea.value = 'abcd';
-shouldBe('textArea.textLength', '4');
-
-textArea.focus();
-eventSender.keyDown('e', []);
-shouldBe('textArea.textLength', '5');
-
-// Test for a character larger than U+FFFF.
-textArea = document.createElement('textarea');
-textArea.innerHTML = '&#x1d538;';
-// Firefox 3.5 and Opera 10 return 2 for 1 surrogate pair.
-shouldBe('textArea.textLength', '2');
-
-// Test for combined characters.
-textArea = document.createElement('textarea');
-// U+3055 Hiragana Letter Sa
-// U+3099 Combining Katakana-HIragana Voiced Sound Mark
-textArea.innerHTML = '&#x3055;&#x3099;';
-// Firefox 3.5 seems to apply NFC for the value, and .textLength and .value.length is 1.
-// Opera 10 returns 2, and IE's .value.length is 2.
-shouldBe('textArea.textLength', '2');
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698