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

Unified Diff: chrome/browser/resources/print_preview/print_preview_utils_test.html

Issue 7891016: Print Preview: Adding UI for margin settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing tests again. Created 9 years, 2 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: 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>
« no previous file with comments | « chrome/browser/resources/print_preview/print_preview_utils.js ('k') | chrome/test/data/webui/print_preview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698