Bug 1345696 part 8 - Make test_redundant_font_download.html more robust. r?heycam draft
authorXidorn Quan <me@upsuper.org>
Tue, 28 Mar 2017 12:09:13 +1100
changeset 552268 fea7c3291c893b0c6f4e1747c360065b11050012
parent 552267 be85069d02065c5526b2224def40f38925e2b07a
child 552269 309b2660d495f22a6fda3e30a54174c747944fa8
push id51302
push userxquan@mozilla.com
push dateTue, 28 Mar 2017 07:29:43 +0000
reviewersheycam
bugs1345696
milestone55.0a1
Bug 1345696 part 8 - Make test_redundant_font_download.html more robust. r?heycam I don't know why... but it seems we do not trigger the font download if we don't ask a layout explicitly here for e10s, which makes this test fail on e10s only with the patches before. MozReview-Commit-ID: ElCG7AqTVGl
layout/style/test/test_redundant_font_download.html
--- a/layout/style/test/test_redundant_font_download.html
+++ b/layout/style/test/test_redundant_font_download.html
@@ -85,16 +85,18 @@
     // We perform a series of actions that trigger requests to the .sjs server,
     // and poll the server's request log at each stage to check that it has
     // seen the request we expected before we proceed to the next step.
     function startTest() {
       is(getRequestLog(), "init", "request log has been initialized");
 
       // this should trigger a font download
       document.getElementById("test").className = "test";
+      // ensure to trigger a layout
+      document.body.offsetLeft;
 
       // wait to confirm that the server has received the request
       waitForRequest("font", 10, 5000, continueTest1);
     }
 
     function continueTest1() {
       is(getRequestLog(), "init;font", "server received font request");