зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1394399 P2 Fix mochitests to expect "same-origin" default Request.credentials. r=baku
This commit is contained in:
Родитель
dc7660b692
Коммит
539b23727a
|
@ -64,9 +64,9 @@ function testSameOriginCredentials() {
|
|||
withCred: "same-origin",
|
||||
},
|
||||
{
|
||||
// Default mode is "omit".
|
||||
// Default mode is "same-origin".
|
||||
pass: 1,
|
||||
noCookie: 1,
|
||||
cookie: cookieStr,
|
||||
},
|
||||
{
|
||||
pass: 1,
|
||||
|
|
|
@ -6,7 +6,7 @@ function testDefaultCtor() {
|
|||
is(req.destination, "", "Default destination is the empty string.");
|
||||
is(req.referrer, "about:client", "Default referrer is `client` which serializes to about:client.");
|
||||
is(req.mode, "cors", "Request mode for string input is cors");
|
||||
is(req.credentials, "omit", "Default Request credentials is omit");
|
||||
is(req.credentials, "same-origin", "Default Request credentials is same-origin");
|
||||
is(req.cache, "default", "Default Request cache is default");
|
||||
|
||||
var req = new Request(req);
|
||||
|
@ -16,7 +16,7 @@ function testDefaultCtor() {
|
|||
is(req.destination, "", "Default destination is the empty string.");
|
||||
is(req.referrer, "about:client", "Default referrer is `client` which serializes to about:client.");
|
||||
is(req.mode, "cors", "Request mode string input is cors");
|
||||
is(req.credentials, "omit", "Default Request credentials is omit");
|
||||
is(req.credentials, "same-origin", "Default Request credentials is same-origin");
|
||||
is(req.cache, "default", "Default Request cache is default");
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче