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

Side by Side Diff: LayoutTests/svg/dom/SVGScriptElement/script-type-attribute.svg

Issue 113133002: Rewrite to not store type in m_type and also remove type getter/setter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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/svg/dom/SVGScriptElement/script-type-attribute-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 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtm l" onload="test()">
2 <script type="text/javascript">
3 function test() {
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 }
7
8 var script = document.createElementNS("http://www.w3.org/2000/svg", "svg:scr ipt");
9 script.type = "text/javascript";
10 if (script.type != "text/javascript" || script.getAttribute("type") != "text /javascript") {
11 document.getElementById("p0").innerHTML = "FAIL";
12 return;
13 }
14
15 script.setAttribute("type", "text/fooscript");
16 if (script.type != "text/fooscript" || script.getAttribute("type") != "text/ fooscript")
17 document.getElementById("p0").innerHTML = "FAIL";
18 }
19 </script>
20 <foreignObject>
21 <xhtml:p>Test that getting/setting the type JS property on SVGScriptElement keep s sync with the type content attribute.</xhtml:p>
22 <xhtml:span id="p0">PASS</xhtml:span>
23 </foreignObject>
24 </svg>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/dom/SVGScriptElement/script-type-attribute-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698