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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/mouse/drag-user-select-all-textarea.html

Issue 2151803003: [Editing][Regression] Contenteditable w/ "-webkit-user-select:all" should be editable for drag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 4 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: third_party/WebKit/LayoutTests/editing/selection/mouse/drag-user-select-all-textarea.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/mouse/drag-user-select-all-textarea.html b/third_party/WebKit/LayoutTests/editing/selection/mouse/drag-user-select-all-textarea.html
new file mode 100644
index 0000000000000000000000000000000000000000..d88452d934cdbe646accab9c6655c325600210f6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/selection/mouse/drag-user-select-all-textarea.html
@@ -0,0 +1,22 @@
+<!doctype HTML>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<style>
+ textarea {
+ font-family: Ahem;
+ font-size: 10px;
+ }
+</style>
+<textarea id="textarea" style="-webkit-user-select:all">foobarbaz</textarea>
+<script>
+test(function(){
+ assert_not_equals(window.eventSender, undefined, 'this test requires window.eventSender');
+ eventSender.dragMode = false;
+ eventSender.mouseMoveTo(textarea.offsetLeft + 30, textarea.offsetTop + 5);
+ eventSender.mouseDown();
+ eventSender.leapForward(100);
+ eventSender.mouseMoveTo(textarea.offsetLeft + 60, textarea.offsetTop + 5);
+ assert_equals(getSelection().toString(), 'bar');
+ },
+'User can select partially in -webkit-user-select:all textarea');
+</script>

Powered by Google App Engine
This is Rietveld 408576698