Remove the remaining traces of content tests.

This commit is contained in:
Ms2ger 2015-04-16 11:29:58 +02:00
parent 306da57b07
commit 9be71b941f
6 changed files with 6 additions and 262 deletions

View file

@ -64,7 +64,6 @@ class MachCommands(CommandBase):
test_dirs = [
# path, mach test command, optional flag for path argument
(path.join("tests", "content"), "test-content", None),
(path.join("tests", "wpt"), "test-wpt", None),
(path.join("tests", "ref"), "test-ref", ["--name"]),
]
@ -93,7 +92,7 @@ class MachCommands(CommandBase):
return self.infer_test_by_dir(params)
test_start = time()
for t in ["tidy", "ref", "content", "wpt", "css", "unit"]:
for t in ["tidy", "ref", "wpt", "css", "unit"]:
Registrar.dispatch("test-%s" % t, context=self.context)
elapsed = time() - test_start
@ -163,23 +162,10 @@ class MachCommands(CommandBase):
@Command('test-content',
description='Run the content tests',
category='testing')
@CommandArgument('test_name', default=None, nargs="?",
help="Only run tests that match this pattern")
def test_content(self, test_name=None):
self.ensure_bootstrapped()
self.ensure_built_tests()
test_path = path.join(self.context.topdir, "tests", "content")
test_args = ["--source-dir=%s" % test_path]
if test_name is not None:
test_args.append(test_name)
test_start = time()
ret = self.run_test("contenttest", test_args)
elapsed = time() - test_start
print("Content tests completed in %0.2fs" % elapsed)
return ret
def test_content(self):
print("Content tests have been replaced by web-platform-tests under "
"tests/wpt/mozilla/.")
return 0
@Command('test-tidy',
description='Run the source code tidiness check',