Closed Bug 1367669 Opened 8 years ago Closed 8 years ago

[Payment Request API] Revise the way to validate a decimal monetary value

Categories

(Core :: DOM: Web Payments, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: alchen, Assigned: alchen)

Details

Attachments

(2 files, 3 obsolete files)

[definition] A JavaScript string is a valid decimal monetary value if it consists of the following code points in the given order: Optionally, a single U+002D HYPHEN-MINUS (-), to indicate that the amount is negative. One or more code points in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9). Optionally, a single U+002E FULL STOP (.) followed by one or more code points in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9).
We need to revise the validate way to pass web-platform-test.
Attachment #8875604 - Flags: review?(amarchesini)
Assignee: nobody → alchen
Comment on attachment 8875604 [details] [diff] [review] Revise the way to validate a decimal monetary value Review of attachment 8875604 [details] [diff] [review]: ----------------------------------------------------------------- We need tests for this. Submit a separate patch for tests.
Attachment #8875604 - Flags: review?(amarchesini) → review+
Attachment #8875604 - Attachment is obsolete: true
Attachment #8879788 - Flags: review+
Comment on attachment 8879788 [details] [diff] [review] Mochitest for validate a decimal monetary value Here is the mochitest for it.
Attachment #8879788 - Attachment description: Revise the way to validate a decimal monetary value. r=baku → Mochitest for validate a decimal monetary value
Attachment #8879788 - Attachment filename: bug1367669_Impl.patch → bug1367669_Test.patch
Attachment #8879788 - Flags: review+ → review?(amarchesini)
Add bug number into the summary
Attachment #8879789 - Attachment is obsolete: true
Attachment #8879811 - Flags: review+
Attachment #8879788 - Flags: review?(amarchesini) → review+
Attachment #8879788 - Attachment is obsolete: true
Attachment #8879848 - Flags: review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/b6364d014e35 [PaymentRequest API] Revise the way to validate a decimal monetary value. r=baku https://hg.mozilla.org/integration/mozilla-inbound/rev/c636d23314b1 [PaymentRequest API] Mochitest for validate a decimal monetary value. r=baku
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: