OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "modules/payments/PaymentRequest.h" | 5 #include "modules/payments/PaymentRequest.h" |
6 | 6 |
7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
8 #include "bindings/core/v8/ScriptState.h" | 8 #include "bindings/core/v8/ScriptState.h" |
9 #include "bindings/core/v8/V8BindingForTesting.h" | 9 #include "bindings/core/v8/V8BindingForTesting.h" |
10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 break; | 72 break; |
73 case PaymentTestDetailShippingOption: | 73 case PaymentTestDetailShippingOption: |
74 out << "shippingOption "; | 74 out << "shippingOption "; |
75 break; | 75 break; |
76 case PaymentTestDetailModifierTotal: | 76 case PaymentTestDetailModifierTotal: |
77 out << "modifiers.total "; | 77 out << "modifiers.total "; |
78 break; | 78 break; |
79 case PaymentTestDetailModifierItem: | 79 case PaymentTestDetailModifierItem: |
80 out << "modifiers.displayItem "; | 80 out << "modifiers.displayItem "; |
81 break; | 81 break; |
| 82 case PaymentTestDetailError: |
| 83 out << "error "; |
| 84 break; |
82 case PaymentTestDetailNone: | 85 case PaymentTestDetailNone: |
83 NOTREACHED(); | 86 NOTREACHED(); |
84 break; | 87 break; |
85 } | 88 } |
86 | 89 |
87 switch (testCase.m_data) { | 90 switch (testCase.m_data) { |
88 case PaymentTestDataId: | 91 case PaymentTestDataId: |
89 out << "id "; | 92 out << "id "; |
90 break; | 93 break; |
91 case PaymentTestDataLabel: | 94 case PaymentTestDataLabel: |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 DetailsTestCase(PaymentTestDetailModifierItem, PaymentTestDataValue, Pay
mentTestOverwriteValue, "10.", true, V8TypeError), | 344 DetailsTestCase(PaymentTestDetailModifierItem, PaymentTestDataValue, Pay
mentTestOverwriteValue, "10.", true, V8TypeError), |
342 DetailsTestCase(PaymentTestDetailModifierItem, PaymentTestDataValue, Pay
mentTestOverwriteValue, ".99", true, V8TypeError), | 345 DetailsTestCase(PaymentTestDetailModifierItem, PaymentTestDataValue, Pay
mentTestOverwriteValue, ".99", true, V8TypeError), |
343 DetailsTestCase(PaymentTestDetailModifierItem, PaymentTestDataValue, Pay
mentTestOverwriteValue, "-10.", true, V8TypeError), | 346 DetailsTestCase(PaymentTestDetailModifierItem, PaymentTestDataValue, Pay
mentTestOverwriteValue, "-10.", true, V8TypeError), |
344 DetailsTestCase(PaymentTestDetailModifierItem, PaymentTestDataValue, Pay
mentTestOverwriteValue, "10-", true, V8TypeError), | 347 DetailsTestCase(PaymentTestDetailModifierItem, PaymentTestDataValue, Pay
mentTestOverwriteValue, "10-", true, V8TypeError), |
345 DetailsTestCase(PaymentTestDetailModifierItem, PaymentTestDataValue, Pay
mentTestOverwriteValue, "1-0", true, V8TypeError), | 348 DetailsTestCase(PaymentTestDetailModifierItem, PaymentTestDataValue, Pay
mentTestOverwriteValue, "1-0", true, V8TypeError), |
346 DetailsTestCase(PaymentTestDetailModifierItem, PaymentTestDataValue, Pay
mentTestOverwriteValue, "1.0.0", true, V8TypeError), | 349 DetailsTestCase(PaymentTestDetailModifierItem, PaymentTestDataValue, Pay
mentTestOverwriteValue, "1.0.0", true, V8TypeError), |
347 DetailsTestCase(PaymentTestDetailModifierItem, PaymentTestDataValue, Pay
mentTestOverwriteValue, "1/3", true, V8TypeError))); | 350 DetailsTestCase(PaymentTestDetailModifierItem, PaymentTestDataValue, Pay
mentTestOverwriteValue, "1/3", true, V8TypeError))); |
348 | 351 |
349 } // namespace | 352 } // namespace |
350 } // namespace blink | 353 } // namespace blink |
OLD | NEW |