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

Unified Diff: third_party/WebKit/LayoutTests/editing/execCommand/apply-inline-style-to-element-with-no-renderer-crash.html

Issue 1604163002: Make apply-inline-style-to-element-with-no-renderer-crash.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-01-20T18:25:00 Created 4 years, 11 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/execCommand/apply-inline-style-to-element-with-no-renderer-crash.html
diff --git a/third_party/WebKit/LayoutTests/editing/apply-inline-style-to-element-with-no-renderer-crash.html b/third_party/WebKit/LayoutTests/editing/execCommand/apply-inline-style-to-element-with-no-renderer-crash.html
similarity index 89%
rename from third_party/WebKit/LayoutTests/editing/apply-inline-style-to-element-with-no-renderer-crash.html
rename to third_party/WebKit/LayoutTests/editing/execCommand/apply-inline-style-to-element-with-no-renderer-crash.html
index 30cfc71074a0637ab70d0fa593c3b0923f4dea3e..3cba805269a89cd4d3ebc00d0a24c1617f422277 100644
--- a/third_party/WebKit/LayoutTests/editing/apply-inline-style-to-element-with-no-renderer-crash.html
+++ b/third_party/WebKit/LayoutTests/editing/execCommand/apply-inline-style-to-element-with-no-renderer-crash.html
@@ -1,7 +1,19 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<svg>
+ <text>
+ <tspan id="tspan">
+ <tspan id="tspan2">%uef5f%u9776%u638a</tspan>
+ <textPath id="textPath"></textPath>
+ </tspan>
+ </text>
+</svg>
+<div id="log"></div>
<script>
// crbug.com/339185: If we create an anchor element using execCommand('CreateLink') in an SVG namespace it won't get a renderer because the command will create
// an HTML rather than an SVG anchor. Our subsequent attempt to apply an inline style on the should fail rather than result in a crash.
-onload = function() {
+test(function() {
tspan = document.getElementById("tspan");
tspan2 = document.getElementById("tspan2");
textPath = document.getElementById("textPath");
@@ -26,13 +38,5 @@ onload = function() {
document.execCommand('Undo');
document.designMode='on';
document.execCommand('italic');
-}
+});
</script>
-<svg>
- <text>
- <tspan id="tspan">
- <tspan id="tspan2">%uef5f%u9776%u638a</tspan>
- <textPath id="textPath"></textPath>
- </tspan>
- </text>
-</svg>

Powered by Google App Engine
This is Rietveld 408576698