зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 0a4e7303358b (bug 1662855) for XPCshell failures in netwerk/test/httpserver/test/test_async_response_sending.js. CLOSED TREE
This commit is contained in:
Родитель
8f95a2e763
Коммит
d5b7a5666c
|
@ -0,0 +1 @@
|
|||
interfaces test_necko.xpt
|
|
@ -14,6 +14,7 @@ XPCSHELL_TESTS_MANIFESTS += ['test/xpcshell.ini']
|
|||
|
||||
EXTRA_COMPONENTS += [
|
||||
'httpd.js',
|
||||
'httpd.manifest',
|
||||
]
|
||||
|
||||
TESTING_JS_MODULES += [
|
||||
|
|
|
@ -271,6 +271,8 @@ ARCHIVE_FILES = {
|
|||
'base': 'dist/bin/components',
|
||||
'patterns': [
|
||||
'httpd.js',
|
||||
'httpd.manifest',
|
||||
'test_necko.xpt',
|
||||
],
|
||||
'dest': 'bin/components',
|
||||
},
|
||||
|
|
|
@ -140,6 +140,7 @@ class RemoteXPCShellTestThread(xpcshell.XPCShellTestThread):
|
|||
self.xpcshell = posixpath.join(self.remoteBinDir, "xpcw")
|
||||
self.headJSPath = posixpath.join(self.remoteScriptsDir, 'head.js')
|
||||
self.httpdJSPath = posixpath.join(self.remoteComponentsDir, 'httpd.js')
|
||||
self.httpdManifest = posixpath.join(self.remoteComponentsDir, 'httpd.manifest')
|
||||
self.testingModulesDir = self.remoteModulesDir
|
||||
self.testharnessdir = self.remoteScriptsDir
|
||||
xpcsCmd = xpcshell.XPCShellTestThread.buildXpcsCmd(self)
|
||||
|
@ -447,6 +448,11 @@ class XPCShellRemote(xpcshell.XPCShellTests, object):
|
|||
self.device.push(local, remoteFile)
|
||||
self.device.chmod(remoteFile)
|
||||
|
||||
local = os.path.join(self.localBin, "components/httpd.manifest")
|
||||
remoteFile = posixpath.join(self.remoteComponentsDir, "httpd.manifest")
|
||||
self.device.push(local, remoteFile)
|
||||
self.device.chmod(remoteFile)
|
||||
|
||||
if self.options['localAPK']:
|
||||
remoteFile = posixpath.join(self.remoteBinDir,
|
||||
os.path.basename(self.options['localAPK']))
|
||||
|
|
|
@ -170,6 +170,7 @@ class XPCShellTestThread(Thread):
|
|||
self.debuggerInfo = kwargs.get('debuggerInfo')
|
||||
self.jsDebuggerInfo = kwargs.get('jsDebuggerInfo')
|
||||
self.pluginsPath = kwargs.get('pluginsPath')
|
||||
self.httpdManifest = kwargs.get('httpdManifest')
|
||||
self.httpdJSPath = kwargs.get('httpdJSPath')
|
||||
self.headJSPath = kwargs.get('headJSPath')
|
||||
self.testharnessdir = kwargs.get('testharnessdir')
|
||||
|
@ -540,6 +541,7 @@ class XPCShellTestThread(Thread):
|
|||
self.xpcshell,
|
||||
'-g', self.xrePath,
|
||||
'-a', self.appPath,
|
||||
'-r', self.httpdManifest,
|
||||
'-m',
|
||||
'-e', 'const _HEAD_JS_PATH = "%s";' % self.headJSPath,
|
||||
'-e', 'const _MOZINFO_JS_PATH = "%s";' % self.mozInfoJSPath,
|
||||
|
@ -1040,6 +1042,9 @@ class XPCShellTests(object):
|
|||
self.httpdJSPath = os.path.join(self.xrePath, 'components', 'httpd.js')
|
||||
self.httpdJSPath = self.httpdJSPath.replace('\\', '/')
|
||||
|
||||
self.httpdManifest = os.path.join(self.xrePath, 'components', 'httpd.manifest')
|
||||
self.httpdManifest = self.httpdManifest.replace('\\', '/')
|
||||
|
||||
if self.mozInfo is None:
|
||||
self.mozInfo = os.path.join(self.testharnessdir, "mozinfo.json")
|
||||
|
||||
|
@ -1586,6 +1591,7 @@ class XPCShellTests(object):
|
|||
'debuggerInfo': self.debuggerInfo,
|
||||
'jsDebuggerInfo': self.jsDebuggerInfo,
|
||||
'pluginsPath': self.pluginsPath,
|
||||
'httpdManifest': self.httpdManifest,
|
||||
'httpdJSPath': self.httpdJSPath,
|
||||
'headJSPath': self.headJSPath,
|
||||
'tempDir': self.tempDir,
|
||||
|
|
Загрузка…
Ссылка в новой задаче