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

Unified Diff: LayoutTests/fast/exclusions/shape-inside/shape-inside-polygon-padding-003.html

Issue 14959014: [CSS Exclusions] Programmatic layout tests fail when subpixel layout is disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 months 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/exclusions/shape-inside/shape-inside-polygon-padding-003.html
diff --git a/LayoutTests/fast/exclusions/shape-inside/shape-inside-polygon-padding-003.html b/LayoutTests/fast/exclusions/shape-inside/shape-inside-polygon-padding-003.html
index 4e13befa21f645d24752ce4ea63f0b586bb9cb26..c7a16a55cf31397f28c94dabf42ce0f3546e1abb 100644
--- a/LayoutTests/fast/exclusions/shape-inside/shape-inside-polygon-padding-003.html
+++ b/LayoutTests/fast/exclusions/shape-inside/shape-inside-polygon-padding-003.html
@@ -2,6 +2,7 @@
<html>
<head>
<script src="../../js/resources/js-test-pre.js"></script>
+<script src="../resources/subpixel-utils.js"></script>
<script>
if (window.internals)
window.internals.settings.setCSSExclusionsEnabled(true);
@@ -70,8 +71,10 @@
*/
+ var quiet = true; // PASS output depends on SubPixelLayout.isEnabled()
leviw_travelin_and_unemployed 2013/05/21 22:21:56 This is a sad change.
+
shouldBe("shapeInsideRect('a').top", "50");
- shouldBeCloseTo("shapeInsideRect('a').left", 190.215, 1);
+ shouldBeCloseTo("shapeInsideRect('a').left", SubPixelLayout.snapToLayoutUnit(190.215), 1, quiet);
shouldBe("shapeInsideRect('a').width", "150");
shouldBe("shapeInsideRect('b').top", "150");
@@ -79,7 +82,7 @@
shouldBe("shapeInsideRect('b').width", "100");
shouldBe("shapeInsideRect('c').top", "250");
- shouldBeCloseTo("shapeInsideRect('c').left", 190.215, 1);
+ shouldBeCloseTo("shapeInsideRect('c').left", SubPixelLayout.snapToLayoutUnit(190.215), 1, quiet);
shouldBe("shapeInsideRect('c').width", "150");
</script>
</html>

Powered by Google App Engine
This is Rietveld 408576698