1{
2 lib,
3 pkgs,
4 ...
5}:
6{
7 name = "servo";
8
9 meta.maintainers = with lib.maintainers; [ hexa ];
10
11 nodes.machine = {
12 imports = [ ./common/x11.nix ];
13
14 environment.systemPackages = with pkgs; [ servo ];
15 };
16
17 enableOCR = true;
18
19 testScript = ''
20 machine.wait_for_x()
21
22 with subtest("Wait until Servo has finished loading the Valgrind docs page"):
23 machine.execute("xterm -e 'servo file://${pkgs.valgrind.doc}/share/doc/valgrind/html/index.html' >&2 &");
24 machine.wait_for_window("Valgrind")
25 machine.wait_for_text("Quick Start Guide")
26 '';
27
28}