зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1503561 - Make browser_UrlbarInput_tooltip.js more robust. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D10711 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
f1ae18f596
Коммит
7543b94e63
|
@ -49,11 +49,15 @@ async function expectNoTooltip() {
|
|||
}
|
||||
|
||||
add_task(async function() {
|
||||
// Ensure the URL bar isn't focused.
|
||||
gBrowser.selectedBrowser.focus();
|
||||
|
||||
gURLBar.value = "short string";
|
||||
await expectNoTooltip();
|
||||
|
||||
let longURL = "http://longurl.com/" + "foobar/".repeat(30);
|
||||
let overflowPromise = BrowserTestUtils.waitForEvent(gURLBar.inputField, "overflow");
|
||||
await window.promiseDocumentFlushed(() => {});
|
||||
gURLBar.value = longURL;
|
||||
await overflowPromise;
|
||||
is(gURLBar.inputField.value, longURL.replace(/^http:\/\//, ""), "Urlbar value has http:// stripped");
|
||||
|
|
Загрузка…
Ссылка в новой задаче