mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 791597 - followup, fix tests being picky, rs=me,bustage
MozReview-Commit-ID: IiqeMXNB6nH --HG-- extra : rebase_source : db0cbeb351716c6dea612f272ddb1cec045b99d0
This commit is contained in:
parent
439d5808fc
commit
29ab0a4926
@ -5,7 +5,10 @@ const DRAG_URL = "http://www.example.com/";
|
||||
|
||||
add_task(function* checkURLBarUpdateForDrag() {
|
||||
yield BrowserTestUtils.withNewTab(TEST_URL, function* (browser) {
|
||||
EventUtils.synthesizeDrop(browser, gURLBar, [[{type: "text/uri-list", data: DRAG_URL}]], "copy", window);
|
||||
// Have to use something other than the URL bar as a source, so picking the
|
||||
// downloads button somewhat arbitrarily:
|
||||
EventUtils.synthesizeDrop(document.getElementById("downloads-button"), gURLBar,
|
||||
[[{type: "text/plain", data: DRAG_URL}]], "copy", window);
|
||||
is(gURLBar.value, TEST_URL, "URL bar value should not have changed");
|
||||
is(gBrowser.selectedBrowser.userTypedValue, null, "Stored URL bar value should not have changed");
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user