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

Unified Diff: LayoutTests/fast/css/fontloader-multiple-faces.html

Issue 23717059: [Font Load Events] Implement FontFaceSet methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
Index: LayoutTests/fast/css/fontloader-multiple-faces.html
diff --git a/LayoutTests/fast/css/fontloader-multiple-faces.html b/LayoutTests/fast/css/fontloader-multiple-faces.html
index dbb02486180d1787c6c1f066b687bd2ff47bea8b..c1366be2473abd5d2556b68daf1348c9339a89ed 100644
--- a/LayoutTests/fast/css/fontloader-multiple-faces.html
+++ b/LayoutTests/fast/css/fontloader-multiple-faces.html
@@ -21,9 +21,9 @@ window.jsTestIsAsync = true;
function runTests() {
document.fonts.addEventListener('loading', onLoading);
document.fonts.addEventListener('loadingdone', onLoadingDone);
- document.fonts.notifyWhenFontsReady(finish);
+ document.fonts.ready().then(finish);
- document.fonts.loadFont({font: '10px TestFont'});
+ document.fonts.load('10px TestFont');
}
var event;
@@ -39,7 +39,7 @@ function onLoadingDone(e) {
shouldBe("event.fontfaces.length", "2");
shouldBeEqualToString("event.fontfaces[0].status", "loaded");
shouldBeEqualToString("event.fontfaces[1].status", "loaded");
- shouldBeTrue("document.fonts.checkFont('10px TestFont')");
+ shouldBeTrue("document.fonts.check('10px TestFont')");
}
function onLoadingError(e) {

Powered by Google App Engine
This is Rietveld 408576698