зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1143995 - Remove unnecessary layout flushes from test_font_loading_api.html. r=jdaggett
This commit is contained in:
Родитель
9184107ef6
Коммит
8e9682a746
|
@ -791,7 +791,6 @@ function runTest() {
|
|||
ruleText += "}";
|
||||
|
||||
style.textContent = ruleText;
|
||||
document.body.offsetTop;
|
||||
|
||||
var rule = style.sheet.cssRules[0];
|
||||
|
||||
|
@ -818,7 +817,6 @@ function runTest() {
|
|||
ok(document.fonts.has(face), "CSS-connected FontFace should not be removed from document.fonts when delete is called (TEST 33)");
|
||||
|
||||
style.textContent = "";
|
||||
document.body.offsetTop;
|
||||
|
||||
ok(!document.fonts.has(face), "CSS-connected FontFace should be removed from document.fonts once the rule has been removed (TEST 33)");
|
||||
|
||||
|
@ -836,7 +834,6 @@ function runTest() {
|
|||
var ruleText = "@font-face { font-family: something; src: url(x); }";
|
||||
|
||||
style.textContent = ruleText;
|
||||
document.body.offsetTop;
|
||||
|
||||
var all = Array.from(document.fonts);
|
||||
var face = all[0];
|
||||
|
@ -846,7 +843,6 @@ function runTest() {
|
|||
});
|
||||
|
||||
style.textContent = "";
|
||||
document.body.offsetTop;
|
||||
|
||||
}).then(function() {
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче