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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/credentialmanager/passwordcredential-fetch.html

Issue 1847383003: CREDENTIAL: Rework the integration with Fetch (2/2) Base URL: https://chromium.googlesource.com/chromium/src.git@pass-serialized
Patch Set: unittest Created 4 years, 8 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
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698