[Payments] WPT: Throw TypeError if amount if not valid. |
|||
Issue descriptionFor each option in details.shippingOptions: if option.amount.value is not a valid decimal monetary value, then throw a TypeError
,
Sep 18 2017
,
Sep 18 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/cd2bd69261deb7d12900c1a18c605d9ab3a380cb commit cd2bd69261deb7d12900c1a18c605d9ab3a380cb Author: Mathieu Perreault <mathp@chromium.org> Date: Mon Sep 18 20:00:47 2017 [Payments] Blink: only perform shipping option validation if requestShipping Previously would always validate amounts regardless of requestShipping value. Now only validates when shipping is requested by the API user. Bug: 766170 Test: blink_tests Change-Id: I2d1138951e1fa284f36b9fd974857e4f17e7c970 Reviewed-on: https://chromium-review.googlesource.com/671109 Commit-Queue: Mathieu Perreault <mathp@chromium.org> Reviewed-by: Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#502655} [modify] https://crrev.com/cd2bd69261deb7d12900c1a18c605d9ab3a380cb/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-constructor.https-expected.txt [modify] https://crrev.com/cd2bd69261deb7d12900c1a18c605d9ab3a380cb/third_party/WebKit/LayoutTests/external/wpt/payment-request/payment-request-ctor-currency-code-checks.https.html [modify] https://crrev.com/cd2bd69261deb7d12900c1a18c605d9ab3a380cb/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
,
Sep 18 2017
|
|||
►
Sign in to add a comment |
|||
Comment 1 by ma...@chromium.org
, Sep 18 2017