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

Side by Side Diff: LayoutTests/svg/custom/multiple-title-elements.svg

Issue 384413003: Document.title getter should return text of title element and setter should stop when head el… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add test case for this CL Created 6 years, 5 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
OLDNEW
1 <?xml version="1.0" standalone="no"?> 1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> 3 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4 <svg width="400" height="300" viewBox="0 0 600 500" 4 <svg width="400" height="300" viewBox="0 0 600 500"
5 xmlns="http://www.w3.org/2000/svg" version="1.1" onload="test()"> 5 xmlns="http://www.w3.org/2000/svg" version="1.1" onload="test()">
6 <script> 6 <script>
7 7
8 var logOffset = 40; 8 var logOffset = 40;
9 var logOffsetIncrement = 40 9 var logOffsetIncrement = 40
10 function log(message) 10 function log(message)
(...skipping 22 matching lines...) Expand all
33 return t; 33 return t;
34 } 34 }
35 35
36 function test() 36 function test()
37 { 37 {
38 if (window.testRunner) 38 if (window.testRunner)
39 testRunner.dumpAsText(); 39 testRunner.dumpAsText();
40 40
41 expect('', document.title); 41 expect('', document.title);
42 document.documentElement.appendChild(createTitleElement('First title')); 42 document.documentElement.appendChild(createTitleElement('First title'));
43 expect('First title', document.title); 43 expect('', document.title);
Inactive 2014/07/16 14:42:05 Why this behavior change for SVG?
kangil_ 2014/07/18 06:55:58 Done.
44 document.documentElement.appendChild(createTitleElement('Second title')); 44 document.documentElement.appendChild(createTitleElement('Second title'));
45 expect('First title', document.title); 45 expect('', document.title);
46 } 46 }
47 </script> 47 </script>
48 <g id="console"> 48 <g id="console">
49 </g> 49 </g>
50 </svg> 50 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698