michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: function runTests() { michael@0: let url = "http://www.example.com/"; michael@0: ok(!thumbnailExists(url), "Thumbnail should not be cached yet."); michael@0: michael@0: let capturedURL = yield bgCapture(url); michael@0: is(capturedURL, url, "Captured URL should be URL passed to capture"); michael@0: michael@0: ok(thumbnailExists(url), "Thumbnail should be cached after capture"); michael@0: removeThumbnail(url); michael@0: }