1 import ./make-test-python.nix ({ pkgs, lib, ... }: {
4 maintainers = with lib.maintainers; [ nickcao midchildan ];
8 imports = [ ./common/x11.nix ];
9 environment.systemPackages = [ pkgs.gnome.gedit ];
11 enableDefaultFonts = false;
18 fontconfig.defaultFonts = {
19 serif = [ "Noto Serif" "Noto Serif CJK SC" ];
20 sansSerif = [ "Noto Sans" "Noto Sans CJK SC" ];
21 monospace = [ "Noto Sans Mono" "Noto Sans Mono CJK SC" ];
22 emoji = [ "Noto Color Emoji" ];
28 # extracted from http://www.clagnut.com/blog/2380/
29 let testText = builtins.toFile "test.txt" ''
30 the quick brown fox jumps over the lazy dog
33 いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす
39 machine.succeed("gedit ${testText} >&2 &")
40 machine.wait_for_window(".* - gedit")
42 machine.screenshot("screen")