2 # vim:ts=4:sw=4:expandtab
4 # Please read the following documents before working on tests:
5 # • https://build.i3wm.org/docs/testsuite.html
8 # • https://build.i3wm.org/docs/lib-i3test.html
9 # (alternatively: perldoc ./testcases/lib/i3test.pm)
11 # • https://build.i3wm.org/docs/ipc.html
14 # • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
15 # (unless you are already familiar with Perl)
17 # Verify that i3 does not crash when restart is issued while a window with a
18 # title that contains non-UTF8 characters is open.
20 # Bug still in: 4.15-241-g9dc4df81
23 my $ws = fresh_workspace;
24 open_window(name => "\x{AA} <-- invalid");
29 # Confirm that the invalid character got replaced with U+FFFD - "REPLACEMENT
31 cmd '[title="^' . "\x{fffd}" . ' <-- invalid$"] fullscreen enable';
32 is_num_fullscreen($ws, 1, 'title based criterion works');