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

Unified Diff: LayoutTests/svg/text/foreignObject-text-clipping-bug.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
« no previous file with comments | « LayoutTests/svg/text/foreignObject-repaint.xml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/text/foreignObject-text-clipping-bug.xml
diff --git a/LayoutTests/svg/text/foreignObject-text-clipping-bug.xml b/LayoutTests/svg/text/foreignObject-text-clipping-bug.xml
index cedc37749ccad334bca9d45bfff22bd4600ef861..8a0fabd24aa1af7943f48bda712879955a563abf 100644
--- a/LayoutTests/svg/text/foreignObject-text-clipping-bug.xml
+++ b/LayoutTests/svg/text/foreignObject-text-clipping-bug.xml
@@ -22,7 +22,11 @@
<script>
if (window.testRunner)
window.testRunner.dumpSelectionRect();
- document.execCommand("SelectAll");
+ var range = document.createRange();
+ range.selectNode(window.document.documentElement);
+ var selection = window.getSelection();
+ selection.removeAllRanges();
+ selection.addRange(range);
</script>
</body>
</html>
« no previous file with comments | « LayoutTests/svg/text/foreignObject-repaint.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698