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

Unified Diff: third_party/WebKit/LayoutTests/fast/selectors/shadow-host-div-with-text.html

Issue 2967903002: Select exact nodes in fast/selectors/shadow-host-div-with-*.html (Closed)
Patch Set: update Created 3 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/selectors/shadow-host-div-with-span.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/selectors/shadow-host-div-with-text.html
diff --git a/third_party/WebKit/LayoutTests/fast/selectors/shadow-host-div-with-text.html b/third_party/WebKit/LayoutTests/fast/selectors/shadow-host-div-with-text.html
index ced764eec9fc9c3cdade322039348535f1eb27d1..5c86dc138b03a40564bdf81e05d194f50c43b634 100644
--- a/third_party/WebKit/LayoutTests/fast/selectors/shadow-host-div-with-text.html
+++ b/third_party/WebKit/LayoutTests/fast/selectors/shadow-host-div-with-text.html
@@ -28,9 +28,7 @@
var span = root.querySelector('span');
var selection = window.getSelection();
- var range = document.createRange();
- range.selectNodeContents(span);
- selection.addRange(range);
+ selection.setBaseAndExtent(span.firstChild, 2, span.firstChild, 54);
</script>
</body>
</html>
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/selectors/shadow-host-div-with-span.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698