diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-01 13:05:24 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-01 13:05:24 +0200 |
commit | ff2f287f82630ab3887d7d5c1e64e5b888ea0beb (patch) | |
tree | 4e96cb32aa2320a327024942d247c6b56ef8c199 /toolkit/crashreporter/test/browser/browser_bug471404.js | |
parent | bfc97728065cbbc7f6bbc281b654a2d1e079b48d (diff) | |
download | UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.tar UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.tar.gz UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.tar.lz UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.tar.xz UXP-ff2f287f82630ab3887d7d5c1e64e5b888ea0beb.zip |
Remove crashreporter toolkit files.
Resolves #20
Diffstat (limited to 'toolkit/crashreporter/test/browser/browser_bug471404.js')
-rw-r--r-- | toolkit/crashreporter/test/browser/browser_bug471404.js | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/toolkit/crashreporter/test/browser/browser_bug471404.js b/toolkit/crashreporter/test/browser/browser_bug471404.js deleted file mode 100644 index f0eb00b71..000000000 --- a/toolkit/crashreporter/test/browser/browser_bug471404.js +++ /dev/null @@ -1,41 +0,0 @@ -function check_clear_visible(browser, aVisible) { - return ContentTask.spawn(browser, aVisible, function (aVisible) { - let doc = content.document; - let visible = false; - let button = doc.getElementById("clear-reports"); - if (button) { - let style = doc.defaultView.getComputedStyle(button, ""); - if (style.display != "none" && - style.visibility == "visible") - visible = true; - } - Assert.equal(visible, aVisible, - "clear reports button is " + (aVisible ? "visible" : "hidden")); - }); -} - -// each test here has a setup (run before loading about:crashes) and onload (run after about:crashes loads) -var _tests = [{setup: null, onload: function(browser) { return check_clear_visible(browser, false); }}, - {setup: function(crD) { return add_fake_crashes(crD, 1); }, - onload: function(browser) { return check_clear_visible(browser, true); }} - ]; - -add_task(function* test() { - let appD = make_fake_appdir(); - let crD = appD.clone(); - crD.append("Crash Reports"); - - yield BrowserTestUtils.withNewTab({ gBrowser, url: "about:blank" }, function* (browser) { - for (let test of _tests) { - // Run setup before loading about:crashes. - if (test.setup) { - yield test.setup(crD); - } - - BrowserTestUtils.loadURI(browser, "about:crashes"); - yield BrowserTestUtils.browserLoaded(browser).then(() => test.onload(browser)); - } - }); - - cleanup_fake_appdir(); -}); |