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

Side by Side Diff: LayoutTests/fast/shapes/shape-inside/shape-inside-polygon-layout.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 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script src="../resources/subpixel-utils.js"></script> 5 <script src="../resources/subpixel-utils.js"></script>
6 <style> 6 <style>
7 #shape-inside { 7 #shape-inside {
8 position: relative; 8 position: relative;
9 width: 594px; 9 width: 594px;
10 height: 500px; 10 height: 500px;
11 shape-inside: polygon(1.58% 1.42%, 99.42% 1.42%, 98.83% 33.33%, 50.67% 3 4.08%, 99.50% 66.62%, 98.83% 99.48%, 2.25% 99.07%); 11 shape-inside: polygon(1.58% 1.42%, 99.42% 1.42%, 98.83% 33.33%, 50.67% 3 4.08%, 99.50% 66.62%, 98.83% 99.48%, 2.25% 99.07%);
12 font: 14.5px/1 Ahem, sans-serif; 12 font: 14.5px/1 Ahem, sans-serif;
13 color: green; 13 color: green;
14 } 14 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 var lineATop = Math.floor(SubPixelLayout.ceilToLayoutUnit(.0142 * 500)); 51 var lineATop = Math.floor(SubPixelLayout.ceilToLayoutUnit(.0142 * 500));
52 52
53 // Verify that all four one-character lines are vertically adjacent and 15 pix els high. 53 // Verify that all four one-character lines are vertically adjacent and 15 pix els high.
54 var quiet = true; // PASS output depends on SubPixelLayout.isEnabled() 54 var quiet = true; // PASS output depends on SubPixelLayout.isEnabled()
55 shouldBe("shapeInsideRect('a').top", String(lineATop), quiet); 55 shouldBe("shapeInsideRect('a').top", String(lineATop), quiet);
56 shouldBe("shapeInsideRect('b').top", String(lineATop + 15), quiet); 56 shouldBe("shapeInsideRect('b').top", String(lineATop + 15), quiet);
57 shouldBe("shapeInsideRect('c').top", String(lineATop + 30), quiet); 57 shouldBe("shapeInsideRect('c').top", String(lineATop + 30), quiet);
58 shouldBe("shapeInsideRect('d').top", String(lineATop + 45), quiet); 58 shouldBe("shapeInsideRect('d').top", String(lineATop + 45), quiet);
59 </script> 59 </script>
60 </html> 60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698