summaryrefslogtreecommitdiff
path: root/browser/base/content/test/browser_bug647886.js
diff options
context:
space:
mode:
Diffstat (limited to 'browser/base/content/test/browser_bug647886.js')
-rw-r--r--browser/base/content/test/browser_bug647886.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/browser/base/content/test/browser_bug647886.js b/browser/base/content/test/browser_bug647886.js
deleted file mode 100644
index 4a41fc6ad..000000000
--- a/browser/base/content/test/browser_bug647886.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ */
-
-function test() {
- waitForExplicitFinish();
-
- gBrowser.selectedTab = gBrowser.addTab();
- gBrowser.selectedBrowser.addEventListener("load", function () {
- gBrowser.selectedBrowser.removeEventListener("load", arguments.callee, true);
-
- content.history.pushState({}, "2", "2.html");
-
- testBackButton();
- }, true);
-
- loadURI("http://example.com");
-}
-
-function testBackButton() {
- var backButton = document.getElementById("back-button");
- var rect = backButton.getBoundingClientRect();
-
- info("waiting for the history menu to open");
-
- backButton.addEventListener("popupshown", function (event) {
- backButton.removeEventListener("popupshown", arguments.callee, false);
-
- ok(true, "history menu opened");
- event.target.hidePopup();
- gBrowser.removeTab(gBrowser.selectedTab);
- finish();
- }, false);
-
- EventUtils.synthesizeMouseAtCenter(backButton, {type: "mousedown"});
- EventUtils.synthesizeMouse(backButton, rect.width / 2, rect.height, {type: "mouseup"});
-}