~chromium-team/chromium-browser/artful-beta

« back to all changes in this revision

Viewing changes to debian/tests/testdata/6-webapps-window-no-chrome.sikuli/6-webapps-window-no-chrome.py

  • Committer: Chad Miller
  • Date: 2013-09-26 18:43:04 UTC
  • Revision ID: chad.miller@canonical.com-20130926184304-dbf45my755qknbss
* New release 29.0.1547.76.
* debian/tests/...: Make first real tests using sikuli. Probably quite
  fragile on changes to upstream. (LP: #1222895)
* debian/patches/4-chromeless-window-launch-option.patch: Make new windows
  use their own state instead of checking the parameters of the instance that
  started all processes for whether a window has chrome or not. (LP: #1223855)
* Update autopkgtest tests.
* debian/patches/series: Drop comment references to old patches.  Remove
  files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
wait("Directorylis-1.png", 20)  # window decoration over bare web page
 
 
b'\\ No newline at end of file'
 
1
import os
 
2
import subprocess
 
3
 
 
4
app = subprocess.Popen(["chromium-browser", "--window-size=1000,2200", "--window-position=50,100", "--user-data-dir=profile_storage", "--chromeless", "--new-window", os.environ["LOCALURL"]])
 
5
 
 
6
try:
 
7
    wait("Directorylis-1.png", 20)  # window decoration over bare web page
 
8
except:
 
9
    subprocess.call(["xwd", "-root", "-out", "6-webapps-window-no-chrome"])
 
10
finally:
 
11
    if app.pid:
 
12
        os.kill(app.pid, signal.SIGTERM)
 
13
        app.wait()
 
14
    else:
 
15
        # Jython python2.5 hackey. So so sorry.
 
16
        app._process.destroy()