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/getRangeAt.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/getRangeAt.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/getRangeAt.html b/third_party/WebKit/LayoutTests/editing/selection/getRangeAt.html
deleted file mode 100644
index 6a998e33c45f9951f779b1e2ea4a32adae89f5e5..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/selection/getRangeAt.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<html>
-<head>
-<script>
-if (window.testRunner)
- testRunner.dumpEditingCallbacks();
-</script>
-<script>
-function log(str) {
- if (str == null)
- str = "null"
- var li = document.createElement("li");
- var pre = document.createElement("pre");
- pre.appendChild(document.createTextNode(str));
- li.appendChild(pre);
- var console = document.getElementById("console");
- console.appendChild(li);
-}
-
-function runTest() {
- var elem = document.getElementById("test");
- var sel = window.getSelection();
-
- if (window.testRunner)
- window.testRunner.dumpAsText();
-
- try {
- sel.setBaseAndExtent(elem, 0, elem, 1);
- var range = sel.getRangeAt(0);
- log(range);
- log(range.startContainer);
- log(range.endContainer);
-
- } catch(e) {
- log("Error: " + e);
- }
-}
-</script></head>
-<body onload="runTest();">
-<p>This tests that Selection::getRangeAt(int) returns a valid Range object.</p>
-<div id="test" style="border:1px solid black; padding:1em;">hello</div>
-<ul id="console"></ul>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698