mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-09 16:57:30 +09:00
Bug 1401876 - (Part 2) Add browser-chrome test for reopening picker
This commit is contained in:
parent
e75b329d4d
commit
1cb68033a6
2 changed files with 27 additions and 1 deletions
|
|
@ -57,8 +57,12 @@ class DateTimeTestHelper {
|
|||
await BrowserTestUtils.waitForEvent(this.panel, "DateTimePickerBindingReady")
|
||||
}
|
||||
this.frame = this.panel.dateTimePopupFrame;
|
||||
await this.waitForPickerReady();
|
||||
}
|
||||
|
||||
async waitForPickerReady() {
|
||||
await BrowserTestUtils.waitForEvent(this.frame, "load", true);
|
||||
// Wait for picker elements to be ready and open panel transition to end
|
||||
// Wait for picker elements to be ready
|
||||
await BrowserTestUtils.waitForEvent(this.frame.contentDocument, "PickerReady");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue