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

Unified Diff: LayoutTests/fast/css/fontloader-multiple-faces-download-error.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-download-error.html
diff --git a/LayoutTests/fast/css/fontloader-multiple-faces-download-error.html b/LayoutTests/fast/css/fontloader-multiple-faces-download-error.html
index af00b65a282ceba11925b73bac0260a79ad35abf..efccf8d4f670ad4531898f446f8bf6616face283 100644
--- a/LayoutTests/fast/css/fontloader-multiple-faces-download-error.html
+++ b/LayoutTests/fast/css/fontloader-multiple-faces-download-error.html
@@ -22,9 +22,9 @@ function runTests() {
document.fonts.addEventListener('loading', onLoading);
document.fonts.addEventListener('loadingdone', onLoadingDone);
document.fonts.addEventListener('loadingerror', onLoadingError);
- document.fonts.notifyWhenFontsReady(finish);
+ document.fonts.ready().then(finish);
- document.fonts.loadFont({font: '10px TestFont'});
+ document.fonts.load('10px TestFont');
}
var event;
@@ -49,7 +49,7 @@ function onLoadingError(e) {
shouldBe("event.fontfaces.length", "1");
shouldBeEqualToString("event.fontfaces[0].unicodeRange", "U+61-7A");
shouldBeEqualToString("event.fontfaces[0].status", "error");
- shouldBeFalse("document.fonts.checkFont('10px TestFont')");
+ shouldBeFalse("document.fonts.check('10px TestFont')");
}
function finish() {

Powered by Google App Engine
This is Rietveld 408576698