From 7ade0f0adbb1997ea303ddec58ea3c88638bef06 Mon Sep 17 00:00:00 2001 From: guyben Date: Wed, 19 Dec 2018 14:26:35 -0800 Subject: [PATCH] Fix the monospace font so the screendiff tests work correctly see b/34094769 for context The webdriver tests don't choose a correct font when we specify "monospace". As a result, we don't render correctly pages that use monospace. Here we instead explicitly reference a monospace font we know exists in the webdriver: Courier New. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=226233831 --- java/google/registry/ui/css/registry.css | 4 ++-- .../registry/ui/soy/registrar/SecuritySettings.soy | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/java/google/registry/ui/css/registry.css b/java/google/registry/ui/css/registry.css index 3607b22cb..51d668adc 100644 --- a/java/google/registry/ui/css/registry.css +++ b/java/google/registry/ui/css/registry.css @@ -22,7 +22,7 @@ h1 { } pre { - font-family: monospace; + font-family: "Courier New", Courier, monospace; white-space: pre-wrap; } @@ -49,7 +49,7 @@ input[readonly], textarea[readonly] { textarea { margin-bottom: 1em; - font-family: monospace; + font-family: "Courier New", Courier, monospace; font-size: 13px; border: solid 1px #ddd; } diff --git a/java/google/registry/ui/soy/registrar/SecuritySettings.soy b/java/google/registry/ui/soy/registrar/SecuritySettings.soy index 8923ccf3c..da798bf62 100644 --- a/java/google/registry/ui/soy/registrar/SecuritySettings.soy +++ b/java/google/registry/ui/soy/registrar/SecuritySettings.soy @@ -86,7 +86,7 @@ {elseif isNonnull($clientCertificateHash)} {if $readonly} @@ -100,7 +100,7 @@ Existing certificate SHA256 base64 hash: {$clientCertificateHash} {else} - + {/if} {else} {if $readonly} @@ -109,10 +109,10 @@

No certificate on file. Please enter your certificate below. + rows="16" cols="68">

Example format: -