Bug 1143995 - Remove unnecessary layout flushes from test_font_loading_api.html. r=jdaggett

This commit is contained in:
Cameron McCormack 2015-03-17 18:15:42 +11:00
Родитель 9184107ef6
Коммит 8e9682a746
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -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() {