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