Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: LayoutTests/fast/css/fontfaceset-add-remove-while-loading.html

Issue 184633005: [CSS Font Loading] Remove FontFace#ready, fold its functionality into FontFace#load (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/css/fontface-methods-expected.txt ('k') | Source/core/css/FontFace.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « LayoutTests/fast/css/fontface-methods-expected.txt ('k') | Source/core/css/FontFace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698