michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: /** michael@0: * These tests ensure that capturing a sites's thumbnail, saving it and michael@0: * retrieving it from the cache works. michael@0: */ michael@0: function runTests() { michael@0: // Create a tab that shows an error page. michael@0: let tab = gBrowser.addTab("http://127.0.0.1:1/"); michael@0: let browser = tab.linkedBrowser; michael@0: michael@0: yield browser.addEventListener("DOMContentLoaded", function onLoad() { michael@0: browser.removeEventListener("DOMContentLoaded", onLoad, false); michael@0: executeSoon(next); michael@0: }, false); michael@0: michael@0: ok(!gBrowserThumbnails._shouldCapture(browser), "we're not going to capture an error page"); michael@0: }