mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-01 11:27:55 +00:00
Bug 1318569 - waiting for image map before running tests in browser_treeupdate_imagemap.js. r=eeejay
MozReview-Commit-ID: 5Cff1jGw0FL
This commit is contained in:
parent
6aa8cca20a
commit
d564a29158
@ -55,7 +55,7 @@ skip-if = e10s && os == 'win' && os_version == '5.1'
|
||||
[browser_treeupdate_hidden.js]
|
||||
skip-if = e10s && os == 'win' && os_version == '5.1'
|
||||
[browser_treeupdate_imagemap.js]
|
||||
skip-if = e10s # Bug 1318569
|
||||
skip-if = e10s && os == 'win' && os_version == '5.1'
|
||||
[browser_treeupdate_list.js]
|
||||
skip-if = e10s && os == 'win' && os_version == '5.1'
|
||||
[browser_treeupdate_list_editabledoc.js]
|
||||
|
@ -170,7 +170,22 @@ function* testContainer(browser) {
|
||||
testAccessibleTree(acc, tree);
|
||||
}
|
||||
|
||||
function* waitForImageMap(browser, accDoc) {
|
||||
const id = 'imgmap';
|
||||
const acc = findAccessibleChildByID(accDoc, id);
|
||||
if (acc.firstChild) {
|
||||
return;
|
||||
}
|
||||
|
||||
const onReorder = waitForEvent(EVENT_REORDER, id);
|
||||
// Wave over image map
|
||||
yield BrowserTestUtils.synthesizeMouse(`#${id}`, 10, 10,
|
||||
{ type: 'mousemove' }, browser);
|
||||
yield onReorder;
|
||||
}
|
||||
|
||||
addAccessibleTask('doc_treeupdate_imagemap.html', function*(browser, accDoc) {
|
||||
yield waitForImageMap(browser, accDoc);
|
||||
yield testImageMap(browser, accDoc);
|
||||
yield testContainer(browser);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user