[devtools] qunit: increase resolution and depth of Xvfb screen

Related to #5533333.

authorRémi Cardona <remi.cardona@logilab.fr>
changeset9bbb35f52d4b
branchdefault
phasepublic
hiddenno
parent revision#da7699ccad68 [web/test] Always call QUnit.ok with a message
child revision#2b54acb271cb [devtools] qunit: decrease test timeout
files modified by this revision
devtools/qunit.py
# HG changeset patch
# User Rémi Cardona <remi.cardona@logilab.fr>
# Date 1431529960 -7200
# Wed May 13 17:12:40 2015 +0200
# Node ID 9bbb35f52d4b7c6daecc8df00d4e594608b720af
# Parent da7699ccad686cd94e0287a319b6456bd293dcc6
[devtools] qunit: increase resolution and depth of Xvfb screen

Related to #5533333.

diff --git a/devtools/qunit.py b/devtools/qunit.py
@@ -66,11 +66,11 @@
1          self._process = None
2          self._profile_dir = mkdtemp(prefix='cwtest-ffxprof-')
3          self.firefox_cmd = ['firefox', '-no-remote']
4          if os.name == 'posix':
5              self.firefox_cmd = [osp.join(osp.dirname(__file__), 'data', 'xvfb-run.sh'),
6 -                                '-a', '-s', '-noreset -screen 0 640x480x8'] + self.firefox_cmd
7 +                                '-a', '-s', '-noreset -screen 0 800x600x24'] + self.firefox_cmd
8 
9      def start(self, url):
10          self.stop()
11          cmd = self.firefox_cmd + ['-silent', '--profile', self._profile_dir,
12                                    '-url', url]