Backed out changeset 5dae0072182f (bug 1382388)

This commit is contained in:
Sebastian Hengst 2017-08-12 13:45:24 +02:00
Родитель 6ff153a8b2
Коммит 8ae78d2792
2 изменённых файлов: 0 добавлений и 26 удалений

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

@ -29,25 +29,3 @@ add_task(async function test_show_abort_dialog() {
ok(win.closed, "dialog should be closed");
});
});
add_task(async function test_show_manualAbort_dialog() {
await BrowserTestUtils.withNewTab({
gBrowser,
url: BLANK_PAGE_URL,
}, async browser => {
// start by creating a PaymentRequest, and show it
await ContentTask.spawn(browser, {methodData, details}, ContentTasks.createAndShowRequest);
// get a reference to the UI dialog and the requestId
let win = await getDialogWindow();
let requestId = paymentUISrv.requestIdForWindow(win);
ok(requestId, "requestId should be defined");
ok(!win.closed, "dialog should not be closed");
// abort the payment request manually
let frameLoader = win.document.getElementById("paymentRequestFrame").frameLoader;
await ContentTask.spawn(frameLoader, null, ContentTasks.manuallyClickCancel);
ok(win.closed, "dialog should be closed");
});
});

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

@ -34,10 +34,6 @@ let ContentTasks = {
content.rq = rq; // assign it so we can retrieve it later
rq.show();
},
manuallyClickCancel: async () => {
content.document.getElementById("cancel").click();
},
};