aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2018-03-06 13:25:10 -0500
committerJosh Matthews <josh@joshmatthews.net>2019-05-09 15:24:18 -0400
commita690d6ffa78af861c7dbaa7daad4448c8fa9d3e6 (patch)
tree0d5d839326db408cd83d6f8027d0f2a38f98eda6 /python/servo
parent79938affb3edf67ab08524c934ed68a769e13202 (diff)
downloadservo-a690d6ffa78af861c7dbaa7daad4448c8fa9d3e6.tar.gz
servo-a690d6ffa78af861c7dbaa7daad4448c8fa9d3e6.zip
Add smoketest command.
Diffstat (limited to 'python/servo')
-rw-r--r--python/servo/testing_commands.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index f4b324d4c62..8696f02f8dc 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -971,3 +971,13 @@ testing/web-platform/mozilla/tests for Servo-only tests""" % reference_path)
run_globals = {"__file__": run_file}
execfile(run_file, run_globals)
return run_globals["update_conformance"](version, dest_folder, None, patches_dir)
+
+ @Command('smoketest',
+ description='Load a simple page in Servo and ensure that it closes properly',
+ category='testing')
+ @CommandArgument('params', nargs='...',
+ help="Command-line arguments to be passed through to Servo")
+ def smoketest(self, params):
+ params = params + ['tests/html/close-on-load.html']
+ return self.context.commands.dispatch(
+ 'run', self.context, params=params)