mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Also handle the exit after load and output file cases for ref tests
This commit is contained in:
parent
6d3429ad03
commit
9ac2f5fd9b
1 changed files with 4 additions and 2 deletions
|
@ -663,14 +663,16 @@ impl IOCompositor {
|
|||
let res = png::store_png(&img, &path);
|
||||
assert!(res.is_ok());
|
||||
|
||||
self.done = true;
|
||||
debug!("shutting down the constellation after generating an output file");
|
||||
self.constellation_chan.send(ExitMsg);
|
||||
}
|
||||
|
||||
self.window.present();
|
||||
|
||||
let exit = self.opts.exit_after_load;
|
||||
if exit {
|
||||
self.done = true;
|
||||
debug!("shutting down the constellation for exit_after_load");
|
||||
self.constellation_chan.send(ExitMsg);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue