blob: e6db3890894065675c44225148038451958837a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
const PAGE = `
<!doctype html>
<select style="width: 600px">
<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");
let arrowSB = popup.shadowRoot.querySelector(".menupopup-arrowscrollbox");
is(
arrowSB.getBoundingClientRect().width,
600,
"Should be the right size"
);
}
);
});
|