mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 19:07:31 +09:00
Replace NSS with Pale Moon's
This commit is contained in:
parent
ff1e5e48bf
commit
8c2e376f94
2870 changed files with 1762232 additions and 1374220 deletions
|
|
@ -40,55 +40,89 @@ GTEST_OUTPUT_1_TEST = 'gtest_xml_outfile1_test_'
|
|||
GTEST_OUTPUT_2_TEST = 'gtest_xml_outfile2_test_'
|
||||
|
||||
EXPECTED_1 = {
|
||||
u'tests': 1,
|
||||
u'failures': 0,
|
||||
u'disabled': 0,
|
||||
u'errors': 0,
|
||||
u'time': u'*',
|
||||
u'timestamp': u'*',
|
||||
u'name': u'AllTests',
|
||||
u'testsuites': [{
|
||||
u'name': u'PropertyOne',
|
||||
u'tests': 1,
|
||||
u'failures': 0,
|
||||
u'disabled': 0,
|
||||
u'errors': 0,
|
||||
u'time': u'*',
|
||||
u'testsuite': [{
|
||||
u'name': u'TestSomeProperties',
|
||||
u'status': u'RUN',
|
||||
u'time': u'*',
|
||||
u'classname': u'PropertyOne',
|
||||
u'SetUpProp': u'1',
|
||||
u'TestSomeProperty': u'1',
|
||||
u'TearDownProp': u'1',
|
||||
'tests':
|
||||
1,
|
||||
'failures':
|
||||
0,
|
||||
'disabled':
|
||||
0,
|
||||
'errors':
|
||||
0,
|
||||
'time':
|
||||
'*',
|
||||
'timestamp':
|
||||
'*',
|
||||
'name':
|
||||
'AllTests',
|
||||
'testsuites': [{
|
||||
'name':
|
||||
'PropertyOne',
|
||||
'tests':
|
||||
1,
|
||||
'failures':
|
||||
0,
|
||||
'disabled':
|
||||
0,
|
||||
'errors':
|
||||
0,
|
||||
'time':
|
||||
'*',
|
||||
'timestamp':
|
||||
'*',
|
||||
'testsuite': [{
|
||||
'name': 'TestSomeProperties',
|
||||
'status': 'RUN',
|
||||
'result': 'COMPLETED',
|
||||
'time': '*',
|
||||
'timestamp': '*',
|
||||
'classname': 'PropertyOne',
|
||||
'SetUpProp': '1',
|
||||
'TestSomeProperty': '1',
|
||||
'TearDownProp': '1',
|
||||
}],
|
||||
}],
|
||||
}
|
||||
|
||||
EXPECTED_2 = {
|
||||
u'tests': 1,
|
||||
u'failures': 0,
|
||||
u'disabled': 0,
|
||||
u'errors': 0,
|
||||
u'time': u'*',
|
||||
u'timestamp': u'*',
|
||||
u'name': u'AllTests',
|
||||
u'testsuites': [{
|
||||
u'name': u'PropertyTwo',
|
||||
u'tests': 1,
|
||||
u'failures': 0,
|
||||
u'disabled': 0,
|
||||
u'errors': 0,
|
||||
u'time': u'*',
|
||||
u'testsuite': [{
|
||||
u'name': u'TestSomeProperties',
|
||||
u'status': u'RUN',
|
||||
u'time': u'*',
|
||||
u'classname': u'PropertyTwo',
|
||||
u'SetUpProp': u'2',
|
||||
u'TestSomeProperty': u'2',
|
||||
u'TearDownProp': u'2',
|
||||
'tests':
|
||||
1,
|
||||
'failures':
|
||||
0,
|
||||
'disabled':
|
||||
0,
|
||||
'errors':
|
||||
0,
|
||||
'time':
|
||||
'*',
|
||||
'timestamp':
|
||||
'*',
|
||||
'name':
|
||||
'AllTests',
|
||||
'testsuites': [{
|
||||
'name':
|
||||
'PropertyTwo',
|
||||
'tests':
|
||||
1,
|
||||
'failures':
|
||||
0,
|
||||
'disabled':
|
||||
0,
|
||||
'errors':
|
||||
0,
|
||||
'time':
|
||||
'*',
|
||||
'timestamp':
|
||||
'*',
|
||||
'testsuite': [{
|
||||
'name': 'TestSomeProperties',
|
||||
'status': 'RUN',
|
||||
'result': 'COMPLETED',
|
||||
'timestamp': '*',
|
||||
'time': '*',
|
||||
'classname': 'PropertyTwo',
|
||||
'SetUpProp': '2',
|
||||
'TestSomeProperty': '2',
|
||||
'TearDownProp': '2',
|
||||
}],
|
||||
}],
|
||||
}
|
||||
|
|
@ -133,19 +167,14 @@ class GTestJsonOutFilesTest(gtest_test_utils.TestCase):
|
|||
command = [gtest_prog_path, '--gtest_output=json:%s' % self.output_dir_]
|
||||
p = gtest_test_utils.Subprocess(command,
|
||||
working_dir=gtest_test_utils.GetTempDir())
|
||||
self.assert_(p.exited)
|
||||
self.assertEquals(0, p.exit_code)
|
||||
self.assertTrue(p.exited)
|
||||
self.assertEqual(0, p.exit_code)
|
||||
|
||||
# FIXME: libtool causes the built test binary to be
|
||||
# named lt-gtest_xml_outfiles_test_ instead of
|
||||
# gtest_xml_outfiles_test_. To account for this possibility, we
|
||||
# allow both names in the following code. We should remove this
|
||||
# when libtool replacement tool is ready.
|
||||
output_file_name1 = test_name + '.json'
|
||||
output_file1 = os.path.join(self.output_dir_, output_file_name1)
|
||||
output_file_name2 = 'lt-' + output_file_name1
|
||||
output_file2 = os.path.join(self.output_dir_, output_file_name2)
|
||||
self.assert_(os.path.isfile(output_file1) or os.path.isfile(output_file2),
|
||||
self.assertTrue(os.path.isfile(output_file1) or os.path.isfile(output_file2),
|
||||
output_file1)
|
||||
|
||||
if os.path.isfile(output_file1):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue