fune/browser/base/content/test/forms/browser_selectpopup_dir.js
Emilio Cobos Álvarez 0be0de0347 Bug 1806195 - Split large select popup tests out of browser_selectpopup.js. r=Gijs
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
2022-12-19 11:34:35 +00:00

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