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

Unified Diff: LayoutTests/fast/css/fontloader-multiple-families.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-families.html
diff --git a/LayoutTests/fast/css/fontloader-multiple-families.html b/LayoutTests/fast/css/fontloader-multiple-families.html
index 2639861fde7b843fd201a8f70527392fa37b6a70..67a36eceda630f946bd80bfb465f0a033d64ceb0 100644
--- a/LayoutTests/fast/css/fontloader-multiple-families.html
+++ b/LayoutTests/fast/css/fontloader-multiple-families.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 TestFont1, TestFont2'});
+ document.fonts.load('10px TestFont1, TestFont2');
}
var event;
@@ -39,9 +39,9 @@ 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 TestFont1')");
- shouldBeTrue("document.fonts.checkFont('10px TestFont2')");
- shouldBeTrue("document.fonts.checkFont('10px TestFont1, TestFont2')");
+ shouldBeTrue("document.fonts.check('10px TestFont1')");
+ shouldBeTrue("document.fonts.check('10px TestFont2')");
+ shouldBeTrue("document.fonts.check('10px TestFont1, TestFont2')");
}
function onLoadingError(e) {

Powered by Google App Engine
This is Rietveld 408576698