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

Side by Side Diff: LayoutTests/fast/sub-pixel/inline-block-with-padding.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 <style> 4 <style>
5 a { 5 a {
6 padding: .3em 1.6em; 6 padding: .3em 1.6em;
7 } 7 }
8 </style> 8 </style>
9 <script src="../js/resources/js-test-pre.js"></script> 9 <script src="../../resources/js-test.js"></script>
10 </head> 10 </head>
11 <body> 11 <body>
12 <p> 12 <p>
13 Both links should render the same and not wrap. 13 Both links should render the same and not wrap.
14 </p> 14 </p>
15 <div> 15 <div>
16 <a style="display: inline-block;" href="#">This shouldn't wrap</a> 16 <a style="display: inline-block;" href="#">This shouldn't wrap</a>
17 </div> 17 </div>
18 <div> 18 <div>
19 <a href="#">This shouldn't wrap</a> 19 <a href="#">This shouldn't wrap</a>
20 </div> 20 </div>
21 <script> 21 <script>
22 var links = document.getElementsByTagName('a'); 22 var links = document.getElementsByTagName('a');
23 var expectedWidth = links[1].offsetWidth; 23 var expectedWidth = links[1].offsetWidth;
24 shouldBeCloseTo('links[0].offsetWidth', links[1].offsetWidth, 1); 24 shouldBeCloseTo('links[0].offsetWidth', links[1].offsetWidth, 1);
25 </script> 25 </script>
26 </body> 26 </body>
27 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698