Bug 1303804 - Fix Promise test that relies on non-release feature (async stacks), r=froydnj

MozReview-Commit-ID: A9qEg11NOt

--HG--
extra : source : b1d6c8c73516bf74a36807bfb4595a57f5276571
extra : amend_source : f985ac3c5b6a59f02751ced11071d6e9ef3dee94
This commit is contained in:
Steve Fink 2016-09-19 15:21:25 -07:00
Родитель 66d61810f3
Коммит 126dd3756f
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -14,6 +14,7 @@ import sys
import tempfile
import unittest
from buildconfig import substs
from StringIO import StringIO
from mozlog import structured
from mozbuild.base import MozbuildObject
@ -27,7 +28,6 @@ mozinfo.find_and_update_from_json()
objdir = build_obj.topobjdir.encode("utf-8")
if mozinfo.isMac:
from buildconfig import substs
xpcshellBin = os.path.join(objdir, "dist", substs['MOZ_MACBUNDLE_NAME'], "Contents", "MacOS", "xpcshell")
else:
xpcshellBin = os.path.join(objdir, "dist", "bin", "xpcshell")
@ -858,7 +858,9 @@ add_test({
self.assertTestResult(False)
self.assertInLog(TEST_FAIL_STRING)
self.assertInLog("test_simple_uncaught_rejection.js:3:3")
if not substs.get('RELEASE_BUILD'):
# async stacks are currently not enabled in release builds.
self.assertInLog("test_simple_uncaught_rejection.js:3:3")
self.assertInLog("Test rejection.")
self.assertEquals(1, self.x.testCount)
self.assertEquals(0, self.x.passCount)