Dave Davenport
f80e7d52bc
[Helper] Remove fixed key/values and accept keys with NULL as values.
2018-10-17 22:41:20 +02:00
Dave Davenport
e8edc42f9d
[Helper] Quick and dirty string replacer with optional keys block.
...
First (quick and dirty) version of a more advanced key replacer where
sets of text are only outputted if the contained key matches.
2018-10-16 21:01:45 +02:00
Dave Davenport
09db7d5d3f
[Tests] Fix window test.
2018-07-10 13:53:40 +02:00
Dave Davenport
a92bcc2818
[Theme] Change window layout for error dialog
2018-06-14 11:16:32 +02:00
Dave Davenport
1cd7698943
[Test] Helper:Pidfile generate tmp. pidfilename.
2018-05-16 22:07:53 +02:00
Dave Davenport
6efd73ff92
Remove duplicate test, use tempnam instead of hardcoded path.
...
Issue: #543
2018-03-07 21:23:49 +01:00
Dave Davenport
ba0acd625f
Remove leading # from dump theme and add mesg about rofi dumping it
2017-10-31 19:29:27 +01:00
Dave Davenport
5312efb310
[Tests] Fix tests for theme-parser.
2017-10-22 13:20:29 +02:00
Askrenteam
0dc71fcc00
Added option -name-only to match only desktop entry name with drun ( #690 )
...
* Added option -name-only to match only desktop entry name with drun
* fixed indent and xrdump test
* fixed test
* option -drun-match-fields
* option -window-match-fields
* matching fields as static in window/drun + enums for field indexes
* prevent window_mode_parse_fields() from executing twice
2017-10-21 11:18:52 +02:00
Dave Davenport
dea962def5
Add Delta to float/double compare.
...
Issue: #692
2017-10-19 17:08:48 +02:00
Dave Davenport
91d88b1fd1
Rename tokenize to helper_tokenize
2017-10-01 10:51:02 +02:00
Dave Davenport
21e2e67412
Make tokenize test use libcheck.
...
- Add some tests for negate.
2017-09-29 18:44:21 +02:00
Dave Davenport
ebffe5503d
Implement support for specifying negated match
...
- Prepending - inverts the matching result.
- Fix logic window/drun browser.
- Breaks API as argument token_match callback changed.
- Update tests.
Fixes : #665
2017-09-29 08:40:25 +02:00
Dave Davenport
ff4946edaf
Cleanup compiler warnings.
...
- Unused var.
- Missing switch statement.
- Change fallthrough for older compilers.
2017-09-17 18:17:26 +02:00
Dave Davenport
28ca3cb510
Fix tests.
2017-09-07 20:03:21 +02:00
Dave Davenport
acfc07a63e
Fix Inherit keyword
2017-09-07 13:46:09 +02:00
Dave Davenport
ba296f9210
Add ch
as size unit.
2017-09-05 13:52:21 +02:00
Dave Davenport
686be5856c
Move PropertyType into rofi-types header and add check for names pairs.
2017-08-17 19:04:01 +02:00
Quentin Glidic
a9ae4424c2
tests/window: Wait for other xterm to close
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-07-27 23:43:47 +02:00
Quentin Glidic
e570fd76c3
tests/window: Add some logging
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-07-27 18:08:23 +02:00
Quentin Glidic
e854260ef8
tests: Better logging
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-07-27 17:48:08 +02:00
Dave Davenport
b9c624d2ee
Add test for strings with embedded "'s
2017-06-26 23:00:41 +02:00
Dave Davenport
9af191de26
Fix tests by splitting types name into separate file.
2017-06-20 21:02:13 +02:00
Dave Davenport
22aacb8f94
Add extra check for rofi_theme_parse_prepare_file
2017-06-14 16:19:17 +02:00
Dave Davenport
32f67ab5a5
Add list property test, allow empty lists.
2017-06-14 08:18:59 +02:00
Dave Davenport
9fe67c1822
[TextBox] Remove TB_LEFT/CENTER/RIGHT replace with xalign/yalign.
2017-06-07 20:16:14 +02:00
Quentin Glidic
0adc0d7c08
view: Always create textbox with type
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-03 20:04:21 +02:00
Dave Davenport
218886f897
Make matching keywords like Vertical case-insensitive add test.
...
- Make keywords like dash, horizontal, etc case-insensitive.
- Add test for orientation property.
2017-06-02 22:12:00 +02:00
Dave Davenport
4cd2d87ed2
Merge remote-tracking branch 'origin/master' into barview
2017-06-02 18:52:28 +02:00
Dave Davenport
4bd9828aa7
Remove index from box_add.
2017-06-02 16:53:39 +02:00
Dave Davenport
1d622aa59c
Change ThemeHighlight to RofiHighlightColorStyle
2017-06-02 16:46:28 +02:00
Dave Davenport
3e46228074
Change Padding to RofiPadding
2017-06-02 16:44:16 +02:00
Dave Davenport
ea7d20d150
Change Orientation enum to RofiOrientation.
2017-06-02 16:34:52 +02:00
Dave Davenport
9915857a2e
Change Distance struct to RofiDistance.
2017-06-02 16:25:47 +02:00
Dave Davenport
7352f1c2ba
Change PixelWidth to RofiPixelUnit.
2017-06-02 16:21:05 +02:00
Dave Davenport
48bf1709b6
Rename HL_ to ROFI_HL_ and fix box test.
2017-06-02 16:09:20 +02:00
Quentin Glidic
51d34b662e
helper: Add API to support startup notification
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:54:21 +02:00
Quentin Glidic
46dee2671d
x11-helper: Rename xcb.c
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 00:12:58 +02:00
Quentin Glidic
352103c5d4
test-x/issue333: Fix binding Control+a for the test
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 15:08:46 +02:00
Quentin Glidic
faa88343f0
test-x: Try to run tests without fluxbox
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 15:07:48 +02:00
Quentin Glidic
4891bcd7eb
bindings: Use a wrapper around rofi_view_trigger_action
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 14:14:59 +02:00
Quentin Glidic
4e448eac45
widget.test: Add NULL tests for trigger_action functions
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:20 +02:00
Quentin Glidic
c68dc38c36
box.test: Test find_mouse_target
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:20 +02:00
Quentin Glidic
839693391b
theme-parser.test: Run in locale C, as we test error strings
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:20 +02:00
Quentin Glidic
a24af6e64c
mode/keys: Display all bindings
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:20 +02:00
Quentin Glidic
0555d15c46
scrollbar: Make it scroll again
...
On click for now, will add motion grab in the following commit
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:19 +02:00
Quentin Glidic
823a45f711
scrollbar: Rework scrollbar_scroll_get_line to work on relative y
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:19 +02:00
Quentin Glidic
a9199e3e17
Use libnkutils for keybindings
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-29 16:51:06 +02:00
Quentin Glidic
0afe4d237d
test-x: Keep server and fluxbox logs out of the way
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-28 00:43:46 +02:00
Quentin Glidic
04faad945a
Merge branch 'master' into wip/meson
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-28 00:21:57 +02:00
Dave Davenport
8616e4e8c6
Add whitespace check for hsl and error range check check
2017-05-21 13:34:58 +02:00
Dave Davenport
421f84285f
Add strikethrough to theme manpage.
...
- extend theme test to hit all rgba rules.
2017-05-18 18:04:52 +02:00
Dave Davenport
fa125cb456
Add extra test for angle unit.
2017-05-18 08:14:41 +02:00
Dave Davenport
41a7e06919
[Theme] Update theme-manpage
2017-05-17 08:24:28 +02:00
Dave Davenport
30fb8c514e
Change ARGB to RGBA, fix in theme converter
2017-05-16 21:55:52 +02:00
Dave Davenport
494550d38d
[ThemeParser] Add CSS color names support
...
* [ThemeParser] Add css color names
* Add CSS color support (WIP)
* Parse color names in the lexer.
* Add test for css color names
* Indent and fix ordering
2017-05-15 22:46:33 +02:00
Dave Davenport
e397c346da
[ThemeParser] Extend color formats.
...
- Support whitespace format.
- Support deg,rad, grad, turn angle.
- Add alpha channel support to hwb
2017-05-15 15:05:40 +02:00
Dave Davenport
f0ceeb86d8
[Lexer] Support hsla
2017-05-15 09:10:02 +02:00
Dave Davenport
3fe42c3f79
Update old-theme-convert test
2017-05-14 19:43:44 +02:00
Dave Davenport
e4c935c764
Add a old theme conversion test and default theme dump test.
2017-05-14 18:22:27 +02:00
Dave Davenport
4e7aa06333
Update test to have no user path.
2017-05-14 17:42:05 +02:00
Dave Davenport
47c6c8435a
Add a small test for error message failing to open file.
2017-05-14 17:21:34 +02:00
Dave Davenport
94ee637102
[Parser] Fix HWB parser alpha channel and add test.
2017-05-13 22:51:10 +02:00
Dave Davenport
ed11c3265d
Cleanup parser (document some rules)
2017-05-11 18:23:36 +02:00
Dave Davenport
aaea2b2c8a
Add hsl and cmyk test, add extra error checking
2017-05-10 20:54:16 +02:00
Dave Davenport
cf8796ccd3
Move position parsing to bison file.
2017-05-09 13:53:45 +02:00
Quentin Glidic
7fd8ce4c0a
Add Meson build system support
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-04 21:50:07 +02:00
Quentin Glidic
bc295bddd5
tests: Properly define placeholders
...
And include all needed headers, to catch misdefinitions.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-04 17:05:27 +02:00
Quentin Glidic
cdc352edf9
tests: Mark static functions as static
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-04 17:05:24 +02:00
Quentin Glidic
1bbb19b4cb
tests: Drop leftover placeholder functions
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-04 14:55:58 +02:00
Dave Davenport
dbf551ec15
Cleanup some compile warning on the tests
2017-05-03 17:57:08 +02:00
Dave Davenport
fb11b8ceb6
[Test,Helper] Add test for utf8_strncmp and fuzzy evaluate.
2017-05-01 09:07:22 +02:00
Dave Davenport
651c0bf03d
[Test,Lexer] Add a newline test
2017-04-30 20:15:49 +02:00
Dave Davenport
aba295647a
[Test] Convert theme-parser test to use libcheck.
2017-04-30 17:44:53 +02:00
Dave Davenport
90d946b809
Hopefully fix for outdated travis
2017-04-29 18:09:10 +02:00
Dave Davenport
084125bc4c
[Test] Play with check.
2017-04-29 17:52:37 +02:00
Dave Davenport
e7d58ada4d
[Test] Add initial code for mode test. (without gui)
2017-04-28 09:43:12 +02:00
Dave Davenport
b1ecb6ca77
[Test] Fix test.
2017-04-27 00:03:59 +02:00
Dave Davenport
d3594e275e
[Test] test configuration block in config.
2017-04-26 23:47:58 +02:00
Dave Davenport
e16d8f755a
[Test] Fixing test
2017-04-26 23:36:27 +02:00
Dave Davenport
ac2390c76d
[Lexer] More tests.
...
Fix return of double.
2017-04-26 23:24:14 +02:00
Dave Davenport
484aa35716
[Lexer] Fix color parsing.
2017-04-26 22:45:14 +02:00
Dave Davenport
d79423f2cf
[Lexer] Fix wrong division factor for #RGB color parsing (15 not 16)
2017-04-26 18:43:49 +02:00
Dave Davenport
38f91e8953
[Test,Lexer] Add test for distance parsing, fix bug in em (double)
...
* Parsed as int, not double.
2017-04-26 08:05:04 +02:00
Dave Davenport
7291c1f497
[Test,Theme] Add extra test for wind direction and newline and link
2017-04-26 07:46:01 +02:00
Dave Davenport
470057be17
Add some tests importing (and failing) file.
2017-04-25 23:34:48 +02:00
Dave Davenport
8d2da410df
Print out diff of failing match
2017-04-25 20:13:34 +02:00
Dave Davenport
f23d035e52
Fix checks
2017-04-17 18:07:50 +02:00
Quentin Glidic
9a68b22009
Fix licenses headers
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-04-15 12:32:05 +02:00
Dave Davenport
4156d142fe
Set PID and wm_client_machine hints on rofi window.
2017-04-10 09:27:22 +02:00
Dave Davenport
898b5466f0
Fix memory leak on parser fail.
2017-04-06 09:12:03 +02:00
Dave Davenport
cada24250c
[ThemeParserTest] Initialize the widget name to NULL
2017-04-04 23:26:35 +02:00
Dave Davenport
c40bb4fc35
Fix small bug and extend test for theme parser
2017-04-04 23:02:08 +02:00
Dave Davenport
abaae5f403
Add (initial) check for theme parser.
2017-04-04 08:56:19 +02:00
Dave Davenport
5259eb11bc
Merge the configuration loading into something more simple (3)
2017-03-28 17:33:43 +02:00
Dave Davenport
5b387f76b1
Fix tests
2017-03-28 12:08:14 +02:00
Dave Davenport
b7f4b7484f
Some initial support for @import in theme and try to fall back when theme fails to load
2017-03-11 17:06:06 +01:00
Dave Davenport
048d601a85
Update tests
2017-03-11 14:55:58 +01:00
Dave Davenport
f7b4bebb9b
Rename token_match to helper_token_match.
2017-02-17 09:58:47 +01:00
Dave Davenport
9941efa5f4
Fix textbox test
2017-01-26 17:40:46 +01:00