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

Side by Side Diff: LayoutTests/http/tests/misc/single-character-pi-stylesheet.xhtml

Issue 216553010: Remove carriage returns from LayoutTests (04) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 <?xml-stylesheet href="a" type="text/css"?> 1 <?xml-stylesheet href="a" type="text/css"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/ DTD/xhtml11.dtd"> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/ DTD/xhtml11.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head></head> 4 <head></head>
5 <body onload="test()"> 5 <body onload="test()">
6 <p> 6 <p>
7 This text should be styled green. 7 This text should be styled green.
8 </p> 8 </p>
9 <script> 9 <script>
10 if (window.testRunner) 10 if (window.testRunner)
11 testRunner.dumpAsText(); 11 testRunner.dumpAsText();
12 12
13 if (!document.firstChild.data.match(/href="a"/)) 13 if (!document.firstChild.data.match(/href="a"/))
14 alert("Please don't rename the stylesheet - the test needs its URL to be sin gle character"); 14 alert("Please don't rename the stylesheet - the test needs its URL to be sin gle character");
15 15
16 function test() 16 function test()
17 { 17 {
18 if (document.firstChild.sheet.cssRules.length) 18 if (document.firstChild.sheet.cssRules.length)
19 document.getElementsByTagName("p")[0].innerHTML += " PASS."; 19 document.getElementsByTagName("p")[0].innerHTML += " PASS.";
20 } 20 }
21 21
22 </script> 22 </script>
23 </body> 23 </body>
24 </html> 24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698