Skip to content
Permalink
Browse files

Add smoketest command.

  • Loading branch information...
jdm committed Mar 6, 2018
1 parent 79938af commit a690d6ffa78af861c7dbaa7daad4448c8fa9d3e6
Showing with 15 additions and 0 deletions.
  1. +10 −0 python/servo/testing_commands.py
  2. +5 −0 tests/html/close-on-load.html
@@ -971,3 +971,13 @@ def update_webgl(self, version=None):
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)
@@ -0,0 +1,5 @@
<script>
window.onload = function() {
window.close();
}
</script>

0 comments on commit a690d6f

Please sign in to comment.
You can’t perform that action at this time.