2014-04-14 12:02:44 +00:00
|
|
|
import ./make-test.nix ({ pkgs, ... }: {
|
2014-06-28 14:04:49 +00:00
|
|
|
name = "firefox";
|
2010-01-05 14:12:51 +00:00
|
|
|
|
2011-09-14 18:20:50 +00:00
|
|
|
machine =
|
2010-01-05 14:12:51 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
2013-09-04 11:05:09 +00:00
|
|
|
{ imports = [ ./common/x11.nix ];
|
2010-01-05 15:32:14 +00:00
|
|
|
environment.systemPackages = [ pkgs.firefox ];
|
2010-01-05 14:12:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
2010-01-05 23:59:29 +00:00
|
|
|
$machine->waitForX;
|
|
|
|
$machine->execute("firefox file://${pkgs.valgrind}/share/doc/valgrind/html/index.html &");
|
2011-01-10 14:41:16 +00:00
|
|
|
$machine->waitForWindow(qr/Valgrind/);
|
|
|
|
$machine->sleep(40); # wait until Firefox has finished loading the page
|
2010-01-05 14:12:51 +00:00
|
|
|
$machine->screenshot("screen");
|
|
|
|
'';
|
2011-09-14 18:20:50 +00:00
|
|
|
|
2014-04-14 12:02:44 +00:00
|
|
|
})
|