| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Credential Manager: PasswordCredential basics.</title> | 2 <title>Credential Manager: PasswordCredential basics.</title> |
| 3 <script src="../resources/testharness.js"></script> | 3 <script src="../resources/testharness.js"></script> |
| 4 <script src="../resources/testharnessreport.js"></script> | 4 <script src="../resources/testharnessreport.js"></script> |
| 5 <script src="/serviceworker/resources/interfaces.js"></script> | |
| 6 <script> | 5 <script> |
| 7 var c = new PasswordCredential({ | 6 var c = new PasswordCredential({ |
| 8 id: 'id', | 7 id: 'id', |
| 9 password: 'pencil', | 8 password: 'pencil', |
| 10 name: 'name', | 9 name: 'name', |
| 11 iconURL: 'https://example.com/icon.png' | 10 iconURL: 'https://example.com/icon.png' |
| 12 }); | 11 }); |
| 13 | 12 |
| 14 promise_test(_ => { | 13 promise_test(_ => { |
| 15 var r = new Request('/', { credentials: c, method: 'POST' }); | 14 var r = new Request('/', { credentials: c, method: 'POST' }); |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 224 |
| 226 return fetch("./resources/echo-raw-post.php", { credentials: credential, met
hod: "POST" }) | 225 return fetch("./resources/echo-raw-post.php", { credentials: credential, met
hod: "POST" }) |
| 227 .then(function (r) { | 226 .then(function (r) { |
| 228 return r.text(); | 227 return r.text(); |
| 229 }) | 228 }) |
| 230 .then(function (t) { | 229 .then(function (t) { |
| 231 assert_equals(t, 'a=1&a=2&a=3&username=id&password=pencil'); | 230 assert_equals(t, 'a=1&a=2&a=3&username=id&password=pencil'); |
| 232 }); | 231 }); |
| 233 }, "'additionalData': URLSearchParams properties are properly injected (ordering
matters)."); | 232 }, "'additionalData': URLSearchParams properties are properly injected (ordering
matters)."); |
| 234 </script> | 233 </script> |
| OLD | NEW |