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

Side by Side Diff: LayoutTests/fast/sub-pixel/table-cells-have-stable-width.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 #firstCell { 5 #firstCell {
6 border-right: 3px solid #e5ecf9; 6 border-right: 3px solid #e5ecf9;
7 width: 12em; 7 width: 12em;
8 padding: 0.5em .5em .5em 0; 8 padding: 0.5em .5em .5em 0;
9 font-size: 95%; 9 font-size: 95%;
10 } 10 }
11 #content { 11 #content {
12 position: relative; 12 position: relative;
13 } 13 }
14 #fixedTable { 14 #fixedTable {
15 table-layout: fixed; 15 table-layout: fixed;
16 } 16 }
17 #firstFixedCell { 17 #firstFixedCell {
18 width: 21.2px; 18 width: 21.2px;
19 margin: 0.3px; 19 margin: 0.3px;
20 padding: 0.1px; 20 padding: 0.1px;
21 } 21 }
22 </style> 22 </style>
23 <script src="../js/resources/js-test-pre.js"></script> 23 <script src="../../resources/js-test.js"></script>
24 </head> 24 </head>
25 25
26 <body> 26 <body>
27 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 27 <table width="100%" cellpadding="0" cellspacing="0" border="0">
28 <tbody class="collapse"> 28 <tbody class="collapse">
29 <tr> 29 <tr>
30 <td id="firstCell"> 30 <td id="firstCell">
31 <div id="content"> 31 <div id="content">
32 <table cellspacing="0" cellpadding="0"> 32 <table cellspacing="0" cellpadding="0">
33 <tbody> 33 <tbody>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 var fixedExpectedWidth = String(fixedCell.getBoundingClientRect().wi dth); 71 var fixedExpectedWidth = String(fixedCell.getBoundingClientRect().wi dth);
72 fixedEl.style.width = fixedEl.getBoundingClientRect().width + "px"; 72 fixedEl.style.width = fixedEl.getBoundingClientRect().width + "px";
73 if (fixedCell.getBoundingClientRect().width == fixedExpectedWidth) 73 if (fixedCell.getBoundingClientRect().width == fixedExpectedWidth)
74 testPassed('Cell in FixedTable has expected size'); 74 testPassed('Cell in FixedTable has expected size');
75 else 75 else
76 shouldBe('fixedCell.getBoundingClientRect().width', fixedExpecte dWidth); 76 shouldBe('fixedCell.getBoundingClientRect().width', fixedExpecte dWidth);
77 77
78 </script> 78 </script>
79 </body> 79 </body>
80 </html> 80 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698