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

Side by Side Diff: LayoutTests/fast/css/xml-stylesheet-alternate-no-title.xhtml

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 type="text/css" href="data:text/css,root { color: green; }"?> 1 <?xml-stylesheet type="text/css" href="data:text/css,root { color: green; }"?>
2 <?xml-stylesheet alternate="yes" type="text/css" href="data:text/css,root { colo r: red; }"?> 2 <?xml-stylesheet alternate="yes" type="text/css" href="data:text/css,root { colo r: red; }"?>
3 <!DOCTYPE html> 3 <!DOCTYPE html>
4 <root xmlns="http://www.w3.org/1999/xhtml" > 4 <root xmlns="http://www.w3.org/1999/xhtml" >
5 <head> 5 <head>
6 <meta charset="utf-8"/> 6 <meta charset="utf-8"/>
7 <script src="../js/resources/js-test-pre.js"></script> 7 <script src="../../resources/js-test.js"></script>
8 <script> 8 <script>
9 9
10 description("xml alternate stylesheet with no title test"); 10 description("xml alternate stylesheet with no title test");
11 11
12 window.onload = function() { 12 window.onload = function() {
13 13
14 if (window.testRunner) 14 if (window.testRunner)
15 testRunner.dumpAsText(); 15 testRunner.dumpAsText();
16 16
17 if (document.styleSheets.length > 1) 17 if (document.styleSheets.length > 1)
18 document.styleSheets[1].disabled = false; 18 document.styleSheets[1].disabled = false;
19 19
20 element = document.getElementById("sampleText") ; 20 element = document.getElementById("sampleText") ;
21 shouldBe("getComputedStyle(element).getPropertyValue('color')", "'rgb(0, 128, 0)'"); 21 shouldBe("getComputedStyle(element).getPropertyValue('color')", "'rgb(0, 128, 0)'");
22 } 22 }
23 23
24 </script> 24 </script>
25 </head> 25 </head>
26 26
27 <body> 27 <body>
28 <div id="sampleText">This text should be green</div> 28 <div id="sampleText">This text should be green</div>
29 29
30 </body> 30 </body>
31 </root> 31 </root>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/xml-lang-ignored-in-html.html ('k') | LayoutTests/fast/css/zoom-media-queries.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698