[src/Layout-test-utils.js]: Fix so that RunLayoutTests.html works on Chrome for Windows ;

This commit is contained in:
Pierre Renaux
2015-05-09 11:47:27 +08:00
parent cc5f772bff
commit 8493789989

View File

@@ -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;