Index: LayoutTests/fast/css/fontfaceset-add-remove-while-loading.html |
diff --git a/LayoutTests/fast/css/fontfaceset-add-remove-while-loading.html b/LayoutTests/fast/css/fontfaceset-add-remove-while-loading.html |
index 31c2bdcd6dbe67b5f7b1925ccff27969210a9e96..4c9f2cfc4908df077626e3798a25fe19faa8d3df 100644 |
--- a/LayoutTests/fast/css/fontfaceset-add-remove-while-loading.html |
+++ b/LayoutTests/fast/css/fontfaceset-add-remove-while-loading.html |
@@ -27,14 +27,12 @@ function testStep2() { |
shouldBeEqualToString('face2.status', 'unloaded'); |
document.fonts.add(face2); |
- face2.load(); |
+ face2.load().then(testStep3); |
shouldBeEqualToString('document.fonts.status', 'loading'); |
document.fonts.delete(face2); |
shouldBeEqualToString('document.fonts.status', 'loaded'); |
shouldBeEqualToString('face2.status', 'loading'); |
- |
- face2.ready().then(testStep3); |
} |
function testStep3() { |