Bug 1492482 - Remove CPOW usage from browser_datetime_picker.js. r=Felipe

Depends on D6969

Differential Revision: https://phabricator.services.mozilla.com/D6970

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Conley 2018-10-02 18:02:59 +00:00
Родитель 1dd8dcf03b
Коммит 49f0fb11c5
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -167,7 +167,10 @@ add_task(async function test_datepicker_clicked() {
await ContentTaskUtils.waitForEvent(inputEl, "input");
});
Assert.equal(gBrowser.contentDocumentAsCPOW.querySelector("input").value, firstDayOnCalendar);
let value = await ContentTask.spawn(gBrowser.selectedBrowser, null, async () => {
return content.document.querySelector("input").value;
});
Assert.equal(value, firstDayOnCalendar);
await helper.tearDown();
});