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

Unified Diff: LayoutTests/dom/svg/svg-className-lookup-crash.htm

Issue 13871003: Fixing getComputedStyle to return pixel values for left / right / top / bottom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing a const issue. Created 7 years, 8 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 | « no previous file | LayoutTests/dom/svg/svg-className-lookup-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/dom/svg/svg-className-lookup-crash.htm
diff --git a/LayoutTests/dom/svg/svg-className-lookup-crash.htm b/LayoutTests/dom/svg/svg-className-lookup-crash.htm
new file mode 100644
index 0000000000000000000000000000000000000000..db988b9fe3a1432f0a5ebbb85338255b62f4d20d
--- /dev/null
+++ b/LayoutTests/dom/svg/svg-className-lookup-crash.htm
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<body>
+<svg><view id="indocument" class="indocument"></view></svg>
+<script>
+document.write("Accessing a SVGStyledElement's class attribute should not crash.<br>\n");
+
+var svgElement1 = document.createElementNS("http://www.w3.org/2000/svg", "view");
+svgElement1.setAttribute("class", "created");
+var result1_1 = svgElement1.getAttribute("class");
+var result1_2 = svgElement1.className;
+document.write("createElementNS() className is 'created', the actual class was '" + result1_1 + "' and '" + result1_2 + "'.<br>\n");
+
+var svgElement2 = document.getElementById("indocument");
+var result2_1 = svgElement2.getAttribute("class");
+var result2_2 = svgElement2.className;
+document.write("In document className is 'indocument', the actual class was '" + result2_1 + "' and '" + result2_2 + "'.<br>\n");
+
+if (window.testRunner) {
+ testRunner.dumpAsText();
+}
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/dom/svg/svg-className-lookup-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698