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

Side by Side Diff: LayoutTests/fast/css/font-family-trailing-bracket-gunk.html

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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <script src="../js/resources/js-test-pre.js"></script> 5 <script src="../../resources/js-test.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <span id="testspan" style="font-family: 'Arial [ding dong]', 'Helvetica [Xft]', Courier">foo</span> 8 <span id="testspan" style="font-family: 'Arial [ding dong]', 'Helvetica [Xft]', Courier">foo</span>
9 <script> 9 <script>
10 10
11 description("This test checks that we don't strip trailing gunk in brackets from font families."); 11 description("This test checks that we don't strip trailing gunk in brackets from font families.");
12 12
13 var spanElement = document.getElementById('testspan'); 13 var spanElement = document.getElementById('testspan');
14 14
15 var computedStyle = window.getComputedStyle(spanElement); 15 var computedStyle = window.getComputedStyle(spanElement);
16 shouldBe("spanElement.innerHTML", "'foo'"); 16 shouldBe("spanElement.innerHTML", "'foo'");
17 shouldBe("computedStyle.getPropertyValue('font-family')", "\"'Arial [ding dong]' , 'Helvetica [Xft]', Courier\""); 17 shouldBe("computedStyle.getPropertyValue('font-family')", "\"'Arial [ding dong]' , 'Helvetica [Xft]', Courier\"");
18 18
19 document.body.removeChild(spanElement); 19 document.body.removeChild(spanElement);
20 20
21 </script> 21 </script>
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/font-family-initial.html ('k') | LayoutTests/fast/css/font-shorthand-from-longhands.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698