diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-05 20:01:10 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-05 20:01:10 +0200 |
commit | c3b63b831cd2c64700e875b28540212c7c881ac6 (patch) | |
tree | edd98fcbd2004d3b562904f822bf6c3322fc7f52 /toolkit/crashreporter/test/browser/browser_bug471404.js | |
parent | d432e068a21c815d5d5e7bcbc1cc8c6e77a7d1e0 (diff) | |
parent | cc07da9cb4d6e7a53f8d953427ffc2bca2e0c2df (diff) | |
download | UXP-c3b63b831cd2c64700e875b28540212c7c881ac6.tar UXP-c3b63b831cd2c64700e875b28540212c7c881ac6.tar.gz UXP-c3b63b831cd2c64700e875b28540212c7c881ac6.tar.lz UXP-c3b63b831cd2c64700e875b28540212c7c881ac6.tar.xz UXP-c3b63b831cd2c64700e875b28540212c7c881ac6.zip |
Merge branch 'master' into 816
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(); -}); |