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

Unified Diff: third_party/WebKit/Source/web/tests/data/composited_selection_bounds_empty_layer.html

Issue 2664253002: Revert "Blink handle selection handle visibility" (Closed)
Patch Set: Created 3 years, 11 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/Source/web/tests/data/composited_selection_bounds_empty_layer.html
diff --git a/third_party/WebKit/Source/web/tests/data/composited_selection_bounds_empty_layer.html b/third_party/WebKit/Source/web/tests/data/composited_selection_bounds_empty_layer.html
new file mode 100644
index 0000000000000000000000000000000000000000..681a73c3303e86079dca0dd6319afb32da4723fe
--- /dev/null
+++ b/third_party/WebKit/Source/web/tests/data/composited_selection_bounds_empty_layer.html
@@ -0,0 +1,14 @@
+<object width="0" height="0" id="emptyLayer"/>
+<script>
+ var range = document.createRange();
+ var emptyLayer = document.getElementById("emptyLayer");
+ var textNode1 = layer1.firstChild;
+ range.setStart(textNode1, 0);
+ range.collapse();
+ document.getSelection().addRange(range);
+
+ // Even though the logical caret activated by the selection has an empty
+ // area, it should still propagate as a valid selection region.
+ window.expectedResult = [emptyLayer, 8, 8, 8, 8, emptyLayer, 8, 8, 8, 8, false, false];
+</script>
+

Powered by Google App Engine
This is Rietveld 408576698