Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

  • This test gets skipped with pattern: os == 'linux' && os_version == '18.04' && processor == 'x86_64' && asan OR os == 'linux' && os_version == '18.04' && processor == 'x86_64' && tsan OR win11_2009 && asan
  • Manifest: browser/components/urlbar/tests/browser/browser.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
const TEST_URL = "https://example.com/autocomplete";
add_setup(async function () {
await PlacesTestUtils.addVisits(TEST_URL);
registerCleanupFunction(async function () {
await PlacesUtils.history.clear();
});
});
add_task(async function test_click_row_border() {
await UrlbarTestUtils.promiseAutocompleteResultPopup({
window,
value: "example.com/autocomplete",
});
let resultRow = await UrlbarTestUtils.waitForAutocompleteResultAt(window, 0);
let loaded = BrowserTestUtils.browserLoaded(
gBrowser.selectedBrowser,
false,
TEST_URL
);
info("Clicking on the result's top pixel row");
EventUtils.synthesizeMouse(
resultRow,
parseInt(getComputedStyle(resultRow).borderTopLeftRadius) * 2,
1,
{}
);
info("Waiting for page to load");
await loaded;
ok(true, "Page loaded");
});