diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-31 07:02:03 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-31 07:02:03 +0200 |
commit | 2f54cd30fc6f6c16db7e95819740e1f229b20984 (patch) | |
tree | 31d05c6b4a6a11e0dd28ab829e48ca262cdd4136 /toolkit/content/tests/browser/head.js | |
parent | de16d196679e3deaf8797abcc05db5cf0ead6ae8 (diff) | |
download | UXP-2f54cd30fc6f6c16db7e95819740e1f229b20984.tar UXP-2f54cd30fc6f6c16db7e95819740e1f229b20984.tar.gz UXP-2f54cd30fc6f6c16db7e95819740e1f229b20984.tar.lz UXP-2f54cd30fc6f6c16db7e95819740e1f229b20984.tar.xz UXP-2f54cd30fc6f6c16db7e95819740e1f229b20984.zip |
Bug 1401876 - (Part 2) Add browser-chrome test for reopening picker
Diffstat (limited to 'toolkit/content/tests/browser/head.js')
-rw-r--r-- | toolkit/content/tests/browser/head.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/toolkit/content/tests/browser/head.js b/toolkit/content/tests/browser/head.js index 399b63e34..d7ed7a9ff 100644 --- a/toolkit/content/tests/browser/head.js +++ b/toolkit/content/tests/browser/head.js @@ -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"); } |