Bug 1339351 - fix typo. r=kaku a=gchang
authorJW Wang <jwwang@mozilla.com>
Sun, 12 Feb 2017 23:40:19 +0800
changeset 378490 9cde62d9b944e0adf27e3133b58041d6387a0c91
parent 378489 6898429f8828083e114ca5c5a07567627298366c
child 378491 50b11ab79661a597f2aa018349fe45c1b8085c0f
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskaku, gchang
bugs1339351
milestone53.0a2
Bug 1339351 - fix typo. r=kaku a=gchang MozReview-Commit-ID: ApKvXMTqcDm
dom/media/test/background_video.js
--- a/dom/media/test/background_video.js
+++ b/dom/media/test/background_video.js
@@ -46,17 +46,17 @@ function waitUntilPlaying(video) {
 /**
  * @param {HTMLMediaElement} video Video element under test.
  * @returns {Promise} Promise which is resolved when video 'ended' event fires.
  */
 function waitUntilEnded(video) {
   Log(video.token, "Waiting for ended");
   if (video.ended) {
     ok(true, video.token + " already ended");
-    return Promise.success();
+    return Promise.resolve();
   }
 
   return once(video, 'ended', () => { ok(true, video.token + " ended"); });
 }
 
 /**
  * @param {HTMLMediaElement} video Video element under test.
  * @returns {Promise} Promise that is resolved when video decode suspends.