Index: chrome/browser/resources/print_preview/print_preview_utils_test.html |
diff --git a/chrome/browser/resources/print_preview/print_preview_utils_test.html b/chrome/browser/resources/print_preview/print_preview_utils_test.html |
index 58994ed0ac04a0b423a427a5c2667a6341bcf125..c6339542a0c0964a3da78069adf04cfa3fbc6fae 100644 |
--- a/chrome/browser/resources/print_preview/print_preview_utils_test.html |
+++ b/chrome/browser/resources/print_preview/print_preview_utils_test.html |
@@ -105,6 +105,18 @@ function testPageSetToPageRanges() { |
assertEquals(pageRanges[2].to, 11); |
} |
+function testConvertInchesToPoints() { |
+ assertEquals(convertInchesToPoints(1), 72); |
+ assertEquals(convertInchesToPoints(2), 144); |
+ assertEquals(convertInchesToPoints(0.45), 32.4); |
+} |
+ |
+function testConvertPointsToInches() { |
+ assertEquals(convertPointsToInches(72), 1); |
+ assertEquals(convertPointsToInches(144), 2); |
+ assertEquals(convertPointsToInches(32.4), 0.45); |
+} |
+ |
</script> |
</body> |
</html> |