lbonn
90cfdf9990
Move some generic stuff from xcb.h to display.h
2020-07-24 19:30:02 +02:00
Dave Davenport
9a3d4b1d2e
[Test] Fix compiler warning, theme test (bug in lexer) and more.
2020-04-26 11:43:14 +02:00
Dave Davenport
09704eb49c
[Test] Use new RofiDistance format.
2020-04-26 11:12:23 +02:00
Jeff
83c2e467d5
Add support for additional field on script entries meta
( #1052 )
...
* Add test for hidden meta data in script mode
The purpose of this is to provide support for "hidden" fields on a
script item that work for search but don't get displayed. This is
mostly to provide something similar to the optional display (but still
matchable) fields in drun like "categories" or "keywords". This also
enables the choice to display unicode icons but still allow for
searching for the keywords without needing to print them.
* Ignore the output file from test runs
* Add support for the "meta" field on script entries
This fields provides a matchable but unprinted string for entries in a
script mode list match. This means you can use one thing but provide
multiple options that can match that item without polluting the list
view or make confusing output.
* Add new test to test suite file
2020-02-01 13:49:11 +01:00
Dave Davenport
4e0dfb03b1
[Test] Fix building of tests.
...
Fixes : #1017
2019-09-27 10:43:29 +02:00
Dave Davenport
aa35ecc40a
[DRun] Add keywords to match and printing.
2019-08-20 22:51:07 +02:00
Dave Davenport
618d1396ee
Issue949 ( #999 )
...
* [Issue 949] Add initial split of listview row into widget tree.
Allowing better themeing.
* Remove unneeded code from textbox. allow dis. icons.
* Fix typo.
* Fix wrong widget offset in textbox.
* Fix mouse handling
* [ListView] Add 'fixed-columns' boolean option.
* [Listview] Fix inversion of option.
* [ListView] remove commented old code.
* [Textbox] Handle null pointer on desired width.
* [Listview] Fix crasher with fixed_columns and more max elements requested items.
* Add hack to get backwards compatibility for new listview structure.
* Fix the scrollbar test.
* Fix tests for theme update..
2019-08-08 20:02:20 +02:00
Dave Davenport
52c5592a6f
[ListView|Textbox] Add user-settable ellipsize mode.
...
Fixes : #917
2019-05-04 11:04:54 +02:00
Quentin Glidic
a6605b6f4d
tests: Fix mode_result test warning
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2019-04-19 10:07:43 +02:00
Dave Davenport
94ebd7e635
[Script] cleanup unnecessary $ from arithmetic variables.
2019-02-02 12:52:23 +01:00
Dave Davenport
f7daa9b1b1
[Scripts] Remove cat for pipe.
2019-02-02 12:39:41 +01:00
Dave Davenport
b30b50dc5a
[Scripts] Do some fixes.
2019-02-02 12:35:37 +01:00
Dave Davenport
2f2abffb98
[CodeCY] More cleanup.
2019-02-02 12:07:36 +01:00
Dave Davenport
804f130d5b
[CodeCY] Cleanup some more warnings given by CodeCY.
2019-02-02 11:53:33 +01:00
Dave Davenport
658f3993ba
[TESTS] Remove (pointless) warning from helper tokenize.
2019-02-02 11:45:28 +01:00
Dave Davenport
c7243da062
[TESTS] Fix scrollbar/history-test assert argument format.
2019-02-02 11:38:33 +01:00
Dave Davenport
9f1a19b21e
[TESTS] Fix helper-test assert argument format.
2019-02-02 11:34:54 +01:00
Dave Davenport
d506c09f85
[TEST] box-test fix commit polution. (oops).
2019-02-02 11:19:43 +01:00
Dave Davenport
63edf012bd
[TESTS] Fix format data type in test asserts.
2019-02-02 11:17:50 +01:00
Dave Davenport
4e3a33acda
[TESTS] Fix format data type in box-test asserts.
2019-02-02 11:12:01 +01:00
Till Hofmann
b77a48c628
tests: initialize char* in mode test ( #875 )
...
* tests: initialize char* in mode test
Currently, test_mode_result relies on undefined behavior.
The test calls mode_result, which checks whether the pointer is NULL.
However, the pointer was never initialized, so it may or may not be
NULL, depending on the compiler.
This caused a test failure on ppc64 and Fedora 28, apparently because in
this setting, gcc sets uninitialized pointers to NULL.
By initializing the pointer to the empty string, the behavior is defined
and the test passes on all architectures.
* mode: fix input pointer check in mode_result
Do not check whether *input (i.e., the char* the input points to) is
NULL, as this is valid. Instead, check whether the input itself is NULL.
* tests: make char* input arg in test_mode_result modifiable
The function mode_result expects a modifiable char*, initialize the
argument properly so it can be modified.
2018-12-14 17:05:07 +01:00
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