about summary refs log tree commit diff stats
path: root/themes/hacker
Commit message (Expand)AuthorAgeFilesLines
* Document statusbar.time theme featureMichael Vetter2019-06-051-0/+1
* Add main.help.header to themesJames Booth2016-10-301-0/+1
* Highlight room trigger termsJames Booth2016-02-131-0/+1
* Added roommention.term theme optionJames Booth2016-02-101-0/+1
* Added mention and trigger themes for consoleJames Booth2016-02-101-0/+2
* Updated themesJames Booth2016-01-241-0/+1
* Added roster contact themesJames Booth2016-01-141-0/+18
* Added roster room themesJames Booth2016-01-091-0/+2
* Updated themes time display settingsJames Booth2015-07-011-1/+1
* Added receipt.sent theme settingJames Booth2015-03-151-1/+2
* Updated themes for releaseJames Booth2015-02-261-20/+22
* Updated hacker themeJames Booth2014-11-171-9/+19
* Updated themes with roommention settingJames Booth2014-07-171-0/+1
* Added otr settings to themesJames Booth2014-03-281-0/+9
* Changed theme propertiesJames Booth2012-12-031-10/+10
* Added time to themes, and some example themesJames Booth2012-11-221-0/+27
/* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# Copyright (C) 2009, 2010  Roman Zimbelmann <romanz@lavabit.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

import os.path
import sys
rangerpath = os.path.join(os.path.dirname(__file__), '..')
if sys.path[1] != rangerpath:
	sys.path[1:1] = [rangerpath]

from unittest import TestCase, main

class Test(TestCase):
	def test_wrapper(self):
		from ranger.api.keys import Wrapper

		class dummyfm(object):
			def move(self, relative):
				return "I move down by {0}".format(relative)

		class commandarg(object):
			def __init__(self):
				self.fm = dummyfm()
				self.n = None
				self.direction = None

		arg = commandarg()

		do = Wrapper('fm')
		command = do.move(relative=4)

		self.assertEqual(command(arg), 'I move down by 4')

if __name__ == '__main__': main()