Граф коммитов

42 Коммитов

Автор SHA1 Сообщение Дата
Paul Bone 6191ca4916 Bug 1709526 - Fix all the lint errors for .ini files in dom/ r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D114321
2021-05-06 01:29:31 +00:00
Andreea Pavel d101db3d49 Backed out changeset be6c8fed6a40 (bug 1654227) for assertion failures on a CLOSED TREE 2020-07-24 15:56:38 +03:00
Marcos Cáceres 4b7144c3a5 Bug 1654227 - enable WPT + mochitests again for Web Payments r=kamidphish
Re-enable the tests... there are some painful fails but we should deal with them on a case by case basis.

Differential Revision: https://phabricator.services.mozilla.com/D84332
2020-07-24 05:14:04 +00:00
Edwin Gao b270bb1353 Bug 1561046 - remove API 17 from manifest files r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D39809

--HG--
extra : moz-landing-system : lando
2019-08-02 20:10:06 +00:00
Joel Maher f526511a8a Bug 1514425 - disable webpayment tests as we do not currently ship this feature. r=marcosc,edenchuang
disable webpayment tests as we do not currently ship this feature

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

--HG--
extra : moz-landing-system : lando
2019-05-01 06:59:03 +00:00
James Willcox 61ca9441b1 Bug 1525959 - Skip some mochitests tests under GeckoView r=geckoview-reviewers,esawin
There are few things that are either Fennec-specific or don't work
currently under GeckoView w/ e10s under TestRunnerActivity. Disable
these so we can get some testing going in automation.

This also replaces 'isFennec' with the more correct 'is_fennec'.

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

--HG--
extra : moz-landing-system : lando
2019-02-27 15:01:43 +00:00
Cosmin Sabou 6f440f8357 Bug 1514425 - Disable dom/payments/test/test_constructor.html on win and osx for frequent failures. r=jmaher 2019-01-07 02:46:25 +02:00
Narcis Beleuzu 7cfde3000c Merge inbound to mozilla-central. a=merge 2018-12-20 23:56:42 +02:00
Matthew Noorenberghe 91692c277f Bug 1515048 - Disable the Payment Request UI and tests by default on Nightly. r=jaws,baku
Differential Revision: https://phabricator.services.mozilla.com/D14885

--HG--
extra : moz-landing-system : lando
2018-12-20 15:08:47 +00:00
Eliza Balazs beea267813 Bug 1514425 - Disable test_constructor.html on linux for frequent failures. r=jmaher 2018-12-20 05:17:00 +02:00
Matthew Noorenberghe 589b8d294e Bug 1435880 - Temporarily disable test_abortPayment and test_canMakePayment due a new leak exposed. r=edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D11924

--HG--
extra : moz-landing-system : lando
2018-11-15 15:06:34 +00:00
Marcos Cáceres ce4c75065c Bug 1489968 - Implement BasicCardErrors for PaymentRequest. r=edenchuang,baku
Differential Revision: https://phabricator.services.mozilla.com/D6378

--HG--
extra : moz-landing-system : lando
2018-09-27 08:03:14 +00:00
Eden Chuang d1c216b95e Bug 1478740 - mochitest for multiple PaymentRequest.show(). r= baku
Adding a testcase for testing multiple PaymentRequest.show() at the same time
2018-09-20 14:29:38 +02:00
Marcos Cáceres f616da00ba Bug 1472026 - Implement PaymentResponse.prototype.onpayerdetailchange. r=edenchuang,baku
Implement PaymentResponse.prototype.onpayerdetailchange, per spec.

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

--HG--
extra : moz-landing-system : lando
2018-09-19 11:23:33 +00:00
shindli 70bf79757d Backed out changeset 376c2bf5bcbf (bug 1472026) for PaymentRequest failures in dom/payments/test/test_block_none10s.html 2018-09-19 12:31:51 +03:00
Marcos Cáceres 9dd1b3aeae Bug 1472026 - Implement PaymentResponse.prototype.onpayerdetailchange. r=edenchuang,baku
Implement PaymentResponse.prototype.onpayerdetailchange, per spec.

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

--HG--
extra : moz-landing-system : lando
2018-09-19 08:41:53 +00:00
Eden Chuang 2a00dce583 Bug 1490698 - mochitest for bug 1490698. r=baku
Adding testcase for interacting with PaymentRequest in wrong PaymentRequest
    state. Calling RespondPayment(), ChangeShippingOption() and
    ChangeShippingAddress() in wrong state should return error. This test case
    verifying the behavior when calling these methods when PaymentRequest state
    is eClosed and after PaymentResponse::complete() called.

--HG--
extra : histedit_source : 3e70e64ac739dd7d8cbc4627dbdbd64462ae4211
2018-09-13 01:58:10 +02:00
Eden Chuang f4764c9019 Bug 1435161 - mochitest for PaymentResponse.retry(). r=baku
1. Add testcase testRetryAfterComplete to test the behavior of retry() after
       complete().
    2. Add testcase testRetryAfterRetry to test the multiple retry()s in the same
       round.
    3. Add testcase testRetryWithEmptyErrors to test the retry() called with an
       empty PaymentValidationErrors.
    4. Add testcase testRetry to test the normal flow of retry().
    5. Add testcase testRetryAbortByUser to test the retry() aborted by user.
2018-09-04 12:30:18 +02:00
Eden Chuang 2f8de0fe6b Bug 1483470 - Improve the test case for responding a closed PaymentRequest. r=baku
1. Improving the testCloseByRedirectingAfterShow. Try to call
       PaymentRequestService::respondPayment when the PaymentRequest is closed.
    2. Adding a new test testUpdateWithRespondedPayment for the case the merchant
       calls PaymentRequestUpdateEvent::updateWith() and the PaymentRequest is
       rejected by the user.

--HG--
rename : dom/payments/test/test_cleanupPayment.html => dom/payments/test/test_closePayment.html
2018-08-24 11:28:50 +02:00
Eden Chuang d532620f01 Bug 1408234 - mochitest for PaymentRequest cleanup after document closed. r=baku
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.
2018-08-13 11:25:13 +02:00
Sebastian Hengst c6864ae376 Bug 1470750 - Don't run DOM payment tests for non-Nightly. r=mrbkap
MozReview-Commit-ID: DqaSGheG7LE
2018-06-25 01:50:40 +03:00
Joel Maher 50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Eden Chuang 130e426839 Bug 1435157 - mochitest for AddressErrors in WebPayment. r=baku
--HG--
extra : rebase_source : e1a782bab18fede5fe12e91ff26f1dd3037ccee2
2018-05-18 14:40:34 +08:00
Eden Chuang 0471b5e543 Bug 1440041 - mochitest for nsIPaymentRequest.shippingOption. r=baku
This patch includes followings
    1. Test with no selected shipping options.
    2. Test with one selected shipping option when creating PaymentRequest.
    3. Test with multiple selected shipping options when creating PaymentRequest.
    4. Test with selecting shipping option by user.
    5. Test with modifying the user selection by merchant.
    6. Merges the mochitest for bug 1443914.

--HG--
rename : dom/payments/test/Bug1443914ChromeScript.js => dom/payments/test/ShippingOptionsChromeScript.js
rename : dom/payments/test/test_bug1443914.html => dom/payments/test/test_shippingOptions.html
extra : histedit_source : 19126dcb3870e0637ed8f4d0fbc6839cb5d682a0
2018-04-13 18:48:31 -07:00
Eden Chuang c0b77a99d3 Bug 1443914 - Mochitest for force updating PaymentDetails. r=baku
--HG--
extra : histedit_source : e2905ede4132942e43045f377dd8fe7ca364c626
2018-03-29 23:10:08 +08:00
Henri Sivonen 2eb6c4eda3 Bug 1436903 - Avoid passing shipping options to the front end when shipping was not requested. r=baku
MozReview-Commit-ID: FdkC02izUy6

--HG--
extra : rebase_source : 4434a148379e33771950848c6cdf1350e33eb23b
2018-03-07 13:16:46 +02:00
Eden Chuang 6b14fc7125 Bug 1403079 - Add mAllowPaymentRequest and related methods on nsIDocument to check if PaymentRequest API is allowed to use. r=smaug
Add a new member mAllowPaymentRequest on nsIDocument and following related
methods,
  bool AllowPaymentRequest() const
  void SetAllowPaymentRequest(bool aAllowPaymentRequest)
mAllowPaymentRequest is used to check if PaymentRequest is allowed to use on
the document. According to the spec
  https://html.spec.whatwg.org/multipage/iframe-embed-object.html#allowed-to-use
the mAllowPaymentRequest should be true under following situations
  1. The document is the top level content document.
  2. The document is the same origin with its parent document and its parent
     document's mAllowPaymentRequest is true.
  3. The document is different origin with its parent document but its
     parent node is an iframe with allowpaymentrequest flag and the parent
     document's mAllowPaymentRquest is true.

This patch also include following mochitests
  1. test for allowpaymentrequest flag changing. The flag change effect should
     not be applied to the document immediately, it should be updated while
     the browsing context is updated.
  2. test for effect propagation in the nested iframe.
2017-10-19 15:56:51 +08:00
Eden Chuang 8eaa630afe Bug 1408250 - Don't expose PaymentRequest API in non-e10s. r=baku
1. PaymentRequest::PrefEnabled() returns false under non-e10s situation.
2. Add a new mochitest test_block_none10s.html to expect to get ReferenceError
   in non-e10s mode.
2017-10-20 00:10:25 +08:00
Eden Chuang f04fc2e524 Bug 1389418 - Mochitest for payment method identifier validation support in PaymentRequest API. r=baku
1. Test PaymentRequest construction with valid PMIs.
2. Test PaymentRequest construction with Invalid PMIs.
3. Test PaymentRequestUpdateEvent::updateWith with a valid PMI.
4. Test PaymentRequestUpdateEvent::updateWith with a invalid PMI.

Remove unnecessary html tags in html files.
2017-09-11 11:10:10 +08:00
Eden Chuang 066f794bbc Bug 1388661 - Mochitest for PaymentRequest API currency amount validation. r=baku
1. Create a new test test_currency_amount_validation.html to test validation
       with following scenarios
       * test with well formed currency codes.
       * test with invalid currency codes.
       * test with valid lower case currency codes and check is it converted to
         upper case.
       * test with invalid currency codes while calling
         PaymentRequestUpdateEvent::updateWith().
       * test with invalid amount value with calling
         PaymentRequestUpdateEvent::updateWith().
    2. Move tests of test_validate_decimal_value.html to
       test_currency_amount_validation.html
2017-09-06 14:38:33 +08:00
Eden Chuang 97081209f0 Bug 1390737 - Run test_canMakePayment.html in nightly build only because it depends on nightly only UI service. r=btian 2017-08-16 12:53:25 +08:00
Eden Chuang d66800c204 Bug 1390018 - Build and test Payments UI code on Nightly builds only. r=MattN
--HG--
extra : source : 8df491f3dcdfa4430bccac3242ee9cfb9fa3634b
2017-08-16 07:16:25 +08:00
Ryan VanderMeulen 629d98cad7 Backed out changeset 8df491f3dcdf for landing with the wrong bug number in the commit message. 2017-08-15 19:27:16 -04:00
Eden Chuang a86c240986 Bug 1380018 - Build and test Payments UI code on Nightly builds only. r=MattN
--HG--
extra : rebase_source : 50f99532eefea866b67c7455dab4e430a9f09dfa
2017-08-16 07:16:25 +08:00
Eden Chuang 0e6944b975 Bug 1382092 - Mochitest for supporting default payment UI in DOM code. r=baku
--HG--
extra : rebase_source : 0323538ef3a6e102d7af9f1bdab7f8fea63fd096
2017-07-24 17:18:27 +08:00
Eden Chuang fd842f1863 Bug 1375345 - Mochitests for basic card payment implementation. r=baku
--HG--
extra : rebase_source : 7a995f0276950af7b2dda2b3a5ea53e7174831a4
2017-07-24 17:17:03 +08:00
Alphan Chen 126b75ecd5 Bug 1318988 - Implement allowPaymentRequest on iframe. r=baku
--HG--
extra : rebase_source : 976b3449ec72d01004323706414e3b26c653aaec
2017-07-18 10:16:28 +08:00
Eden Chuang 0a91438f97 Bug 1318990 - Mochitest for PaymentRequestUpdateEvent and PaymentRequest API show(). r=baku 2017-06-23 17:15:58 +08:00
Alphan Chen 7836b08caf Bug 1367669 - [PaymentRequest API] Mochitest for validate a decimal monetary value. r=baku 2017-06-21 15:37:54 +08:00
Eden Chuang 332643e391 Bug 1345365 - Mochitest for PaymentRequest API canMakePayment() and abort(). r=baku
--HG--
extra : rebase_source : 9bac1eb8459104dd398f655d46f4c197d763d9ca
2017-06-13 14:43:18 +08:00
Wes Kocher 1c6a87f4be Backed out 2 changesets (bug 1345365) for frequent failures in test_data.html a=backout
Backed out changeset 0ea7a5deacf6 (bug 1345365)
Backed out changeset bba1dee06769 (bug 1345365)

MozReview-Commit-ID: KURUgnesr8B
2017-06-15 00:52:04 -07:00
Eden Chuang f9257bbf5b Bug 1345365 - Mochitest for PaymentRequest API canMakePayment() and abort(). r=baku
--HG--
extra : rebase_source : 854f2a94f2951f979c9bf5173c39c8fc1c11555c
2017-06-13 14:43:18 +08:00