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
--- 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");