mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
d532620f01
1. add a set new mochitests to test cleanup function. By redirecting to another page. By redirecting to another page, when PaymentRequest.show() is called. By reloading By removing/closing the page. 2. remove unnecessary PaymentRequestService.cleanup() call in the test suite.
14 lines
512 B
JavaScript
14 lines
512 B
JavaScript
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
|
|
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
"use strict";
|
|
|
|
const { XPCOMUtils } = ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
|
|
|
|
const paymentSrv = Cc["@mozilla.org/dom/payments/payment-request-service;1"].getService(Ci.nsIPaymentRequestService);
|
|
|
|
addMessageListener("teardown", function() {
|
|
paymentSrv.setTestingUIService(null);
|
|
sendAsyncMessage('teardown-complete');
|
|
});
|