Bug 1401081 - Wait one more cycle to finish css loading. r=kmag

MozReview-Commit-ID: DSai1moD2Qy
This commit is contained in:
Liang-Heng Chen 2017-09-29 02:54:00 -04:00
parent 451dcb314e
commit 87b9f374e9

View File

@ -101,6 +101,9 @@ async function test_i18n_css(options = {}) {
let contentPage = await ExtensionTestUtils.loadContentPage(`${BASE_URL}/file_sample.html`);
// workaround for extension may not be ready for applying foo.css
await new Promise(do_execute_soon);
let maxWidth = await ContentTask.spawn(contentPage.browser, {}, async function() {
/* globals content */
let style = content.getComputedStyle(content.document.body);