Bug 1539694 - Part 3: Update xray tests for Promise. r=peterv
☠☠ backed out by 7befb6bf6b3b ☠ ☠
authorAndré Bargull <andre.bargull@gmail.com>
Wed, 10 Apr 2019 10:29:49 +0000
changeset 469097 b69cb7f4f3059c56434b82641db3ae813e7f9036
parent 469096 2e36a4f4d99662dfe8bf771d0fb95a80a5928c36
child 469098 18af3ac7686b947a75f45190c9d08f9f019d4982
push id112769
push usercsabou@mozilla.com
push dateFri, 12 Apr 2019 03:51:12 +0000
treeherdermozilla-inbound@9ab47be2e004 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspeterv
bugs1539694
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1539694 - Part 3: Update xray tests for Promise. r=peterv Depends on D25209 Differential Revision: https://phabricator.services.mozilla.com/D26144
js/xpconnect/tests/chrome/test_xrayToJS.xul
--- a/js/xpconnect/tests/chrome/test_xrayToJS.xul
+++ b/js/xpconnect/tests/chrome/test_xrayToJS.xul
@@ -249,16 +249,19 @@ https://bugzilla.mozilla.org/show_bug.cg
                       "leftContext", "rightContext", "$1", "$2", "$3", "$4",
                       "$5", "$6", "$7", "$8", "$9", "$_", "$&", "$+",
                       "$`", "$'", Symbol.species])
 
   gPrototypeProperties['Promise'] =
     ["constructor", "catch", "then", "finally", Symbol.toStringTag];
   gConstructorProperties['Promise'] =
     constructorProps(["resolve", "reject", "all", "race", Symbol.species]);
+  if (isNightlyBuild) {
+    gConstructorProperties['Promise'].push("allSettled");
+  }
 
   gPrototypeProperties['ArrayBuffer'] =
     ["constructor", "byteLength", "slice", Symbol.toStringTag];
   gConstructorProperties['ArrayBuffer'] =
     constructorProps(["isView", Symbol.species]);
 
   is(typeof SharedArrayBuffer, "undefined", "Enable tests!");