about summary refs log tree commit diff stats
path: root/tests/functionaltests
Commit message (Expand)AuthorAgeFilesLines
* functest: Make char constMichael Vetter2020-10-152-9/+9
* Add include for waitpid to functionaltestMichael Vetter2020-06-041-0/+1
* Update tests with new URLMichael Vetter2019-05-036-39/+39
* Rename mucconf wins into conf winsPaul Fariello2018-09-051-2/+2
* Add room /me functional testsJames Booth2018-04-213-0/+58
* Fix tests, move glob creationJames Booth2018-01-271-6/+6
* Only send ping requests to client that support itJames Booth2017-06-163-9/+100
* Change server name in functional testsJames Booth2017-06-151-1/+1
* Show message when server does not support pingJames Booth2017-06-153-0/+28
* Add carbons from checkJames Booth2017-01-231-1/+1
* Remove status from cl_ev_presence_sendJames Booth2017-01-153-0/+29
* Allow clearing account resourceJames Booth2016-11-222-2/+2
* Use server features for account muc serviceJames Booth2016-11-204-18/+1
* Tests: disable occupants panel in functional testsJames Booth2016-09-262-2/+2
* Tests: longer timeout for failing functional test on travisJames Booth2016-09-261-0/+2
* log_info on private carbonsJames Booth2016-08-283-0/+32
* Send receipt request only when receiver supports featureJames Booth2016-08-183-1/+40
* Add /blocked commandJames Booth2016-05-013-33/+33
* Fixed functional test ID based stubsJames Booth2016-04-263-34/+34
* Removed #AX_PREFIX_CONFIG_HJames Booth2016-03-311-1/+1
* Added C plugin code from plugins branchJames Booth2016-02-141-1/+1
* Call UI disconnect functions before disconnecting with /disconnectJames Booth2016-01-053-0/+28
* Added functional tests for /console commandJames Booth2015-12-305-3/+111
* Use single quotes in functional test stanzasJames Booth2015-12-3012-215/+215
* Uncommented functional testsJames Booth2015-12-221-63/+63
* Added chat message functional testsJames Booth2015-12-223-67/+86
* Updated console new message textJames Booth2015-12-203-6/+6
* Change console incoming message text to include "win"James Booth2015-12-202-5/+5
* Added functional test for muc console messageJames Booth2015-12-203-1/+32
* Disable muc notifications for functional testsJames Booth2015-12-201-0/+2
* Added more muc functional testsJames Booth2015-12-203-6/+97
* Removed whitespaceJames Booth2015-12-201-5/+0
* Added muc functional testsJames Booth2015-12-203-0/+161
* Fixed functional testsJames Booth2015-11-291-2/+2
* Force tls on all connections, add tls policy account propertyJames Booth2015-10-182-2/+2
* functionaltests: user ip address for server on connectJames Booth2015-10-132-2/+2
* functionaltests: reset connect wait to 30 secsJames Booth2015-10-131-1/+1
* functionaltests: Doubled libexpect timeout for connectJames Booth2015-10-131-1/+1
* Doubled expect timeout for connect in tests, removed libuuid from travis buildJames Booth2015-10-131-1/+1
* Fixed functional testsJames Booth2015-09-301-3/+13
* Show software version result in current windowJames Booth2015-08-064-9/+68
* Handle software version requests for gateways that return from domainpartJames Booth2015-08-054-0/+31
* Use id handler for software version requests, handle errorsJames Booth2015-08-053-0/+27
* Added software version request testsJames Booth2015-08-043-0/+66
* Added test for missing resource on presenceJames Booth2015-08-043-0/+21
* tests: prof_connect_with_roster takes itemsJames Booth2015-07-232-18/+17
* Added id attributes to roster queriesJames Booth2015-07-225-9/+148
* Added reciept send functional testJames Booth2015-07-203-0/+23
* Added receipt request functional testJames Booth2015-07-203-1/+35
* Added functional test macroJames Booth2015-07-201-102/+36
class="p">) if f.extension in ('swc', 'smc'): return self.app_zsnes(c) if f.mimetype is not None: if INTERPRETED_LANGUAGES.match(f.mimetype): return self.app_edit_or_run(c) if f.container: return self.app_aunpack(c) if f.video or f.audio: if f.video: c.flags += 'd' return self.either(c, 'mplayer', 'totem') if f.image: return self.either(c, 'feh', 'eye_of_gnome', 'mirage') if f.document or f.filetype.startswith('text'): return self.app_editor(c) # ----------------------------------------- application definitions def app_pager(self, c): return tup('less', *c) @depends_on('vim') def app_vim(self, c): return tup('vim', *c) def app_editor(self, c): try: default_editor = os.environ['EDITOR'] except KeyError: pass else: parts = default_editor.split() exe_name = os.path.basename(parts[0]) if exe_name in self.fm.executables: return tuple(parts) + tuple(c) return self.either(c, 'vim', 'emacs', 'nano') @depends_on(app_editor, Applications.app_self) def app_edit_or_run(self, c): if c.mode is 1: return self.app_self(c) return self.app_editor(c) @depends_on('mplayer') def app_mplayer(self, c): if c.mode is 1: return tup('mplayer', *c) elif c.mode is 2: args = "mplayer -fs -sid 0 -vfm ffmpeg -lavdopts " \ "lowres=1:fast:skiploopfilter=all:threads=8".split() args.extend(c) return tup(*args) elif c.mode is 3: return tup('mplayer', '-mixer', 'software', *c) else: return tup('mplayer', '-fs', *c) @depends_on("eog") def app_eye_of_gnome(self, c): c.flags += 'd' return tup('eog', *c) @depends_on('mirage') def app_mirage(self, c): c.flags += 'd' return tup('mirage', *c) @depends_on('feh') def app_feh(self, c): arg = {1: '--bg-scale', 2: '--bg-tile', 3: '--bg-center'} c.flags += 'd' if c.mode in arg: return tup('feh', arg[c.mode], c.file.path) if c.mode is 4: return self.app_gimp(c) if len(c.files) > 1: return tup('feh', *c) try: from collections import deque directory = self.fm.env.get_directory(c.file.dirname) images = [f.path for f in directory.files if f.image] position = images.index(c.file.path) deq = deque(images) deq.rotate(-position) return tup('feh', *deq) except: return tup('feh', *c) @depends_on("gimp") def app_gimp(self, c): return tup('gimp', *c) @depends_on('aunpack') def app_aunpack(self, c): if c.mode is 0: c.flags += 'p' return tup('aunpack', '-l', c.file.path) return tup('aunpack', c.file.path) @depends_on('apvlv') def app_apvlv(self, c): c.flags += 'd' return tup('apvlv', *c) @depends_on('make') def app_make(self, c): if c.mode is 0: return tup("make") if c.mode is 1: return tup("make", "install") if c.mode is 2: return tup("make", "clear") @depends_on('elinks') def app_elinks(self, c): c.flags += 'D' return tup('elinks', *c) @depends_on('opera') def app_opera(self, c): return tup('opera', *c) @depends_on('firefox') def app_firefox(self, c): return tup("firefox", *c) @depends_on('javac') def app_javac(self, c): return tup("javac", *c) @depends_on('java') def app_java(self, c): def strip_extensions(file): if '.' in file.basename: return file.path[:file.path.index('.')] return file.path files_without_extensions = map(strip_extensions, c.files) return tup("java", files_without_extensions) @depends_on('zsnes') def app_zsnes(self, c): return tup("zsnes", c.file.path) @depends_on('evince') def app_evince(self, c): return tup("evince", *c) @depends_on('zathura') def app_zathura(self, c): return tup("zathura", *c) @depends_on('wine') def app_wine(self, c): return tup("wine", c.file.path) @depends_on('totem') def app_totem(self, c): if c.mode is 0: return tup("totem", "--fullscreen", *c) if c.mode is 1: return tup("totem", *c)