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

Unified Diff: LayoutTests/svg/text/foreignObject-repaint.xml

Issue 1167033002: Remove layout tests that run execCommand on non-HTML documents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix doctype Created 5 years, 6 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: LayoutTests/svg/text/foreignObject-repaint.xml
diff --git a/LayoutTests/svg/text/foreignObject-repaint.xml b/LayoutTests/svg/text/foreignObject-repaint.xml
index 0fc803057da69b49214fe497c830c9b1c531e50d..8b86122c9a7df42672e303075bdc6ee873bee5b6 100644
--- a/LayoutTests/svg/text/foreignObject-repaint.xml
+++ b/LayoutTests/svg/text/foreignObject-repaint.xml
@@ -6,7 +6,11 @@
</foreignObject>
<script>
if (window.eventSender) {
- document.execCommand("SelectAll");
+ var range = document.createRange();
+ range.selectNode(window.document.documentElement);
+ var selection = window.getSelection();
+ selection.removeAllRanges();
+ selection.addRange(range);
eventSender.mouseMoveTo(200, 200);
eventSender.mouseDown();
eventSender.mouseUp();

Powered by Google App Engine
This is Rietveld 408576698