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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/set_base_and_extent/set_base_and_extent_html.html

Issue 2695193002: Selection API: setBaseAndExtent() and selectAllChildren() should create new Range based on the spec… (Closed)
Patch Set: rebase Created 3 years, 10 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/set_base_and_extent/set_base_and_extent_html.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/set_base_and_extent/set_base_and_extent_html.html b/third_party/WebKit/LayoutTests/editing/selection/set_base_and_extent/set_base_and_extent_html.html
deleted file mode 100644
index 73421d9edc79dc7946e83df51d471430ba1b7901..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/selection/set_base_and_extent/set_base_and_extent_html.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!doctype html>
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-<body contenteditable>
-VisiblePositions created at [html, x] where html is non-editable should descend
-into an editable body, for convenience. Everything on this page should be
-selected.
-<div id="log"></div>
-</body>
-<script>
-test(function() {
- var selection = window.getSelection();
- var html = document.documentElement;
- selection.setBaseAndExtent(html, 1, html, 2);
- var body = document.body;
- assert_equals(selection.anchorNode, body.firstChild, 'anchorNode');
- assert_equals(selection.anchorOffset, 1, 'anchorOffset');
- assert_equals(selection.focusNode, body.firstChild, 'focusNode');
- assert_equals(selection.focusOffset, 165, 'focusOffset');
-}, 'special case of HTML element');
-</script>

Powered by Google App Engine
This is Rietveld 408576698