Bug 1143953 - Fix typo in test_font_loading_api.html where it incorrectly returns document.fonts.read. r=jdaggett, a=test-only
authorCameron McCormack <cam@mcc.id.au>
Tue, 17 Mar 2015 18:15:42 +1100
changeset 257818 5ba0b08949a0a78a99ddd235cae6041e7651db1b
parent 257817 98428cf569e6687fb4a3cb99b5e762eb1012e32e
child 257819 9c79cb13792489a56a3ff4a4e30dfc9e3be72ab1
push id4610
push userjlund@mozilla.com
push dateMon, 30 Mar 2015 18:32:55 +0000
treeherdermozilla-beta@4df54044d9ef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdaggett, test-only
bugs1143953
milestone38.0a2
Bug 1143953 - Fix typo in test_font_loading_api.html where it incorrectly returns document.fonts.read. r=jdaggett, a=test-only
layout/style/test/test_font_loading_api.html
--- a/layout/style/test/test_font_loading_api.html
+++ b/layout/style/test/test_font_loading_api.html
@@ -446,17 +446,17 @@ function runTest() {
     all = Array.from(document.fonts);
     is(all[0], face, "FontFaces should be returned in the same order as insertion (TEST 25)");
     is(all[1], face2, "FontFaces should be returned in the same order as insertion (TEST 25)");
     document.fonts.add(face);
     all = Array.from(document.fonts);
     is(all[0], face, "FontFaces should be not be reordered when a duplicate entry is added (TEST 25)");
     is(all[1], face2, "FontFaces should be not be reordered when a duplicate entry is added (TEST 25)");
     document.fonts.clear();
-    return document.fonts.read;
+    return document.fonts.ready;
 
   }).then(function() {
 
     // (TEST 26) Test that FontFaceSet.ready is replaced, .status is set to
     // "loading", and a loading event is dispatched when a loading FontFace is
     // added to it.
     var awaitEvents = new Promise(function(aResolve, aReject) {