forked from mirrors/gecko-dev
They fail on win7 only with my patch for bug 1805694 (tried win 10 with and without native menus and nothing, sigh) and I need to debug them. Let's do this while at it, this makes the test run on macOS and Linux too, since browser_selectpopup is sadly disabled on those platforms. Differential Revision: https://phabricator.services.mozilla.com/D164951
21 lines
442 B
JavaScript
21 lines
442 B
JavaScript
const PAGE = `
|
|
<!doctype html>
|
|
<select style="direction: rtl">
|
|
<option>ABC</option>
|
|
<option>DEFG</option>
|
|
</select>
|
|
`;
|
|
|
|
add_task(async function() {
|
|
const url = "data:text/html," + encodeURI(PAGE);
|
|
await BrowserTestUtils.withNewTab(
|
|
{
|
|
gBrowser,
|
|
url,
|
|
},
|
|
async function(browser) {
|
|
let popup = await openSelectPopup("click");
|
|
is(popup.style.direction, "rtl", "Should be the right dir");
|
|
}
|
|
);
|
|
});
|