From 84937899897042f41f3237aa788ccacbbab75653 Mon Sep 17 00:00:00 2001 From: Pierre Renaux Date: Sat, 9 May 2015 11:47:27 +0800 Subject: [PATCH] [src/Layout-test-utils.js]: Fix so that RunLayoutTests.html works on Chrome for Windows ; --- src/Layout-test-utils.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Layout-test-utils.js b/src/Layout-test-utils.js index 96df2fcf..7edf6905 100644 --- a/src/Layout-test-utils.js +++ b/src/Layout-test-utils.js @@ -403,6 +403,13 @@ var layoutTestUtils = (function() { bigMinWidth: 100.4375 }; + // Note(prenaux): Clearly not what I would like, but it seems to be the only + // way :( My guess is that since the font on Windows is + // different than on OSX it has a different size. + if (typeof navigator !== 'undefined' && navigator.userAgent.indexOf("Windows NT") > -1) { + preDefinedTextSizes.bigHeight = 36; + } + var textSizes; if (typeof require === 'function') { textSizes = preDefinedTextSizes;