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

Unified Diff: LayoutTests/editing/selection/focus-and-display-none-and-redisplay.html

Issue 424973003: Don't clear selection on focus change except for text form control element (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2014-07-30T09:45:59 Created 6 years, 5 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: LayoutTests/editing/selection/focus-and-display-none-and-redisplay.html
diff --git a/LayoutTests/editing/selection/focus-and-display-none-and-redisplay.html b/LayoutTests/editing/selection/focus-and-display-none-and-redisplay.html
index e895a7d7eef255c0ed48983a2b237079140baba3..2e89a4c885012d9866af4aa3f0cefc59434bd1e3 100644
--- a/LayoutTests/editing/selection/focus-and-display-none-and-redisplay.html
+++ b/LayoutTests/editing/selection/focus-and-display-none-and-redisplay.html
@@ -3,14 +3,14 @@
<script src="../../resources/js-test.js"></script>
<textarea>original</textarea>
<script>
-description('Unfocused TEXTAREA should not accept editing.');
+description('Unfocused TEXTAREA should accept editing if it has selection.');
jsTestIsAsync = true;
var textarea = document.querySelector('textarea');
textarea.addEventListener('blur', function() {
textarea.style.display = 'inline-block';
shouldNotBe('document.activeElement', 'textarea');
document.execCommand('inserttext', false, 'add');
- shouldBeEqualToString('textarea.value', 'original');
+ shouldBeEqualToString('textarea.value', 'addoriginal');
finishJSTest();
}, false);
textarea.focus();

Powered by Google App Engine
This is Rietveld 408576698