summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/forms/browser_selectpopup_dir.js
blob: aaf4a61fc2f80e903bf43ad70d1d103d369339ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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");
    }
  );
});