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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/onselect-textarea.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/onselect-textarea.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/onselect-textarea.html b/third_party/WebKit/LayoutTests/fast/forms/onselect-textarea.html
deleted file mode 100644
index ca5c97f682e6405f398fce4a924019b3df018d95..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/onselect-textarea.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<html>
-<head>
-<style>
-textarea { -webkit-appearance: textarea;}
-</style>
-<script>
- function log(msg) {
- document.getElementById('res').innerHTML = document.getElementById('res').innerHTML + msg + "<br>";
- }
-
- function test() {
- if (window.testRunner)
- testRunner.dumpAsText();
- var ta = document.getElementById('ta');
-
- log('Calling focus on textarea');
- ta.focus();
- log('After focus: textarea selection start: ' + ta.selectionStart + ' end: ' + ta.selectionEnd + '<br>');
-
- log('Calling setSelectionRange on textarea');
- ta.setSelectionRange(5, 10);
- log('After setSelectionRange(5, 10): textarea selection start: ' + ta.selectionStart + ' end: ' + ta.selectionEnd + '<br>');
-
- log('Double clicking to make selection for textarea');
- if (window.eventSender) {
- eventSender.mouseMoveTo(75, 55);
- eventSender.mouseDown();
- eventSender.mouseUp();
- eventSender.mouseDown();
- eventSender.mouseUp();
- }
- log('After double clicking: textarea selection start: ' + ta.selectionStart + ' end: ' + ta.selectionEnd + '<br>');
-
- log('Calling blur on textarea');
- ta.blur();
- log('After blur: textarea selection start: ' + ta.selectionStart + ' end: ' + ta.selectionEnd + '<br>');
-
- log('Calling focus on textarea');
- ta.focus();
- log('After focus: textarea selection start: ' + ta.selectionStart + ' end: ' + ta.selectionEnd);
- }
-</script>
-</head>
-<body onload="test()">
-<br>
-This tests onSelect for textareas. <br>
-This also makes sure that the correct selection is restored when the element regains focus.<br><br>
-<textarea id="ta" onselect="log('onselect fired for textarea');" style="position: absolute; top: 50; left: 10;">textarea with lots of fun content!</textarea>
-<div id="res" style="position: absolute; top: 100; left: 10;"></div>
-</body>
-</html>
-

Powered by Google App Engine
This is Rietveld 408576698