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

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: Rebase and take review comment into consideration 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 25 matching lines...) Expand all
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('First title', document.title);
44 document.documentElement.appendChild(createTitleElement('Second title')); 44 document.documentElement.appendChild(createTitleElement('Second title'));
45 expect('First title', document.title); 45 expect('First title', document.title);
46 document.documentElement.removeChild(document.getElementsByTagName('title')[ 0]);
47 expect('Second title', document.title);
46 } 48 }
47 </script> 49 </script>
48 <g id="console"> 50 <g id="console">
49 </g> 51 </g>
50 </svg> 52 </svg>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Document/title-01-expected.txt ('k') | LayoutTests/svg/custom/multiple-title-elements-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698