Bug 1339351 - fix typo. r=kaku a=jcristau
authorJW Wang <jwwang@mozilla.com>
Sun, 12 Feb 2017 23:40:19 +0800
changeset 354300 23b6c61a00882647e9275d67a5d608fd83f04915
parent 354299 189be0f13dfce7ddd53c8d4c15e0a9aa2bb7fadc
child 354301 b9a1b65ec6106cf981735177628e8c28edce7bfd
push id6895
push userryanvm@gmail.com
push dateFri, 17 Feb 2017 14:19:07 +0000
treeherdermozilla-esr52@41c9d8ee2649 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskaku, jcristau
bugs1339351
milestone52.0
Bug 1339351 - fix typo. r=kaku a=jcristau 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.