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

Unified Diff: LayoutTests/fast/css/fontfaceset-loadingdone.html

Issue 816923002: Switch FontFaceSet#ready from a method to an attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
Index: LayoutTests/fast/css/fontfaceset-loadingdone.html
diff --git a/LayoutTests/fast/css/fontfaceset-loadingdone.html b/LayoutTests/fast/css/fontfaceset-loadingdone.html
index c167895346931e9c5d8074710fe6d547dce938ec..56b9545c0d30453cbd286954e90a04eca0033839 100644
--- a/LayoutTests/fast/css/fontfaceset-loadingdone.html
+++ b/LayoutTests/fast/css/fontfaceset-loadingdone.html
@@ -28,8 +28,8 @@ function runTests() {
shouldBeEqualToString('window.getComputedStyle(testDiv, 0).width', '48px');
};
- document.fonts.ready().then(function() {
- debug('ready() promise fulfilled');
+ document.fonts.ready.then(function() {
+ debug('ready promise fulfilled');
shouldBeEqualToString('window.getComputedStyle(testDiv, 0).width', '48px');
finishJSTest();
});

Powered by Google App Engine
This is Rietveld 408576698