Bug 875986, part 4 - check no thumbnail file before capture. r=adw

This commit is contained in:
Mark Hammond 2013-09-09 14:36:38 +10:00
parent c143f4d69a
commit d8474723d5

View File

@ -247,8 +247,9 @@ let tests = [
// that cookie is not saved for subsequent requests.
function noCookiesStored() {
let url = testPageURL({ setRedCookie: true });
yield capture(url);
let file = fileForURL(url);
ok(!file.exists(), "Thumbnail file should not exist before capture.");
yield capture(url);
ok(file.exists(), "Thumbnail file should exist after capture.");
file.remove(false);
// now load it up in a browser - it should *not* be red, otherwise the