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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <svg><view id="indocument" class="indocument"></view></svg>
5 <script>
6 document.write("Accessing a SVGStyledElement's class attribute should not crash. <br>\n");
7
8 var svgElement1 = document.createElementNS("http://www.w3.org/2000/svg", "view") ;
9 svgElement1.setAttribute("class", "created");
10 var result1_1 = svgElement1.getAttribute("class");
11 var result1_2 = svgElement1.className;
12 document.write("createElementNS() className is 'created', the actual class was ' " + result1_1 + "' and '" + result1_2 + "'.<br>\n");
13
14 var svgElement2 = document.getElementById("indocument");
15 var result2_1 = svgElement2.getAttribute("class");
16 var result2_2 = svgElement2.className;
17 document.write("In document className is 'indocument', the actual class was '" + result2_1 + "' and '" + result2_2 + "'.<br>\n");
18
19 if (window.testRunner) {
20 testRunner.dumpAsText();
21 }
22 </script>
23 </body>
24 </html>
OLDNEW
« 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