Bug 791597 - followup, fix tests being picky, rs=me,bustage

MozReview-Commit-ID: IiqeMXNB6nH

--HG--
extra : rebase_source : db0cbeb351716c6dea612f272ddb1cec045b99d0
This commit is contained in:
Gijs Kruitbosch 2016-12-14 16:53:20 +00:00
parent 439d5808fc
commit 29ab0a4926

View File

@ -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");
});