nixpkgs/tests/firefox.nix
Eelco Dolstra 835522e40d * Wait a bit more.
svn path=/nixos/trunk/; revision=21340
2010-04-27 12:24:16 +00:00

22 lines
476 B
Nix

{ pkgs, ... }:
{
machine =
{ config, pkgs, ... }:
{ require = [ ./common/x11.nix ];
environment.systemPackages = [ pkgs.firefox ];
};
testScript =
''
$machine->waitForX;
$machine->execute("firefox file://${pkgs.valgrind}/share/doc/valgrind/html/index.html &");
$machine->waitForWindow(/Valgrind.*Shiretoko/);
sleep 40; # wait until Firefox has finished loading the page
$machine->screenshot("screen");
'';
}