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 250438 37be317efc7a
parent 250437 938177ece421
child 250439 e84f65c3a6aa
push id4589
push userryanvm@gmail.com
push date2015-03-19 02:20 +0000
treeherdermozilla-beta@d76c709556bb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdaggett, test-only
bugs1143953
milestone37.0
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) {