Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: third_party/WebKit/LayoutTests/payments/promises-keep-request-alive.html

Issue 2025213002: Remove id attribute from PaymentItem in test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 <script src="../resources/mojo-helpers.js"></script> 4 <script src="../resources/mojo-helpers.js"></script>
5 <script src="resources/payment-request-mock.js"></script> 5 <script src="resources/payment-request-mock.js"></script>
6 <script> 6 <script>
7 var details = { 7 var details = {
8 items: [ 8 items: [
9 { 9 {
10 id: 'bar',
11 label: 'Sub-total', 10 label: 'Sub-total',
12 amount: { currency: 'USD', value : '55.00' }, // US$55.00 11 amount: { currency: 'USD', value : '55.00' }, // US$55.00
13 }, 12 },
14 { 13 {
15 id: 'foo',
16 label: 'Sales Tax', 14 label: 'Sales Tax',
17 amount: { currency: 'USD', value : '5.00' }, // US$5.00 15 amount: { currency: 'USD', value : '5.00' }, // US$5.00
18 } 16 }
19 ] 17 ]
20 }; 18 };
21 19
22 var response_data = { 20 var response_data = {
23 method_name: 'visa', 21 method_name: 'visa',
24 stringified_details: '{}' 22 stringified_details: '{}'
25 }; 23 };
(...skipping 14 matching lines...) Expand all
40 // Return before calling gc() to make sure reference to response 38 // Return before calling gc() to make sure reference to response
41 // is gone. 39 // is gone.
42 }) 40 })
43 .then(() => { 41 .then(() => {
44 gc(); 42 gc();
45 mock.onComplete(); 43 mock.onComplete();
46 return completeResult; 44 return completeResult;
47 }); 45 });
48 }, 'Promises resolve even without references to request or response.'); 46 }, 'Promises resolve even without references to request or response.');
49 </script> 47 </script>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698