Commit 9f2e88bc authored by Staphany Park's avatar Staphany Park Committed by Commit Bot

Cookie Store: Move some WPT tests out of resources/.

This conversion is a step towards unifying the structure of the Cookie Store API
WPT tests.

Change-Id: Ib6c8f93d407c7f749652e699cd9c336ac5cb85ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1928233
Commit-Queue: Victor Costan <pwnall@chromium.org>
Auto-Submit: Staphany Park <staphany@chromium.org>
Reviewed-by: default avatarVictor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#717742}
parent 84c2fc65
// META: title=Cookie Store API: Observing 'change' events in document when cookies set via document.cookie
// META: script=resources/cookie-test-helpers.js
'use strict'; 'use strict';
cookie_test(async t => { cookie_test(async t => {
......
// META: title=Cookie Store API: Observing 'change' events in document when cookies set via Set-Cookie header
// META: script=resources/cookie-test-helpers.js
'use strict'; 'use strict';
cookie_test(async t => { cookie_test(async t => {
......
// META: title=Cookie Store API: Observing 'change' events in document when modifications API is called with blank arguments
// META: script=resources/cookie-test-helpers.js
'use strict'; 'use strict';
cookie_test(async t => { cookie_test(async t => {
......
// META: title=Cookie Store API: Observing 'change' events in document when setting a cookie value containing "="
// META: script=resources/cookie-test-helpers.js
'use strict'; 'use strict';
cookie_test(async t => { cookie_test(async t => {
......
// META: title=Cookie Store API: Observing 'change' events in document when modifications API is called multiple times with a blank name
// META: script=resources/cookie-test-helpers.js
'use strict'; 'use strict';
cookie_test(async t => { cookie_test(async t => {
......
// META: title=Cookie Store API: Cookie ordering
// META: global=!default,serviceworker,window
'use strict'; 'use strict';
cookie_test(async t => { promise_test(async t => {
await cookieStore.set('ordered-1', 'cookie-value1'); await cookieStore.set('ordered-1', 'cookie-value1');
await cookieStore.set('ordered-2', 'cookie-value2'); await cookieStore.set('ordered-2', 'cookie-value2');
await cookieStore.set('ordered-3', 'cookie-value3'); await cookieStore.set('ordered-3', 'cookie-value3');
...@@ -16,7 +19,7 @@ cookie_test(async t => { ...@@ -16,7 +19,7 @@ cookie_test(async t => {
}, 'Set three simple origin session cookies sequentially and ensure ' + }, 'Set three simple origin session cookies sequentially and ensure ' +
'they all end up in the cookie jar in order.'); 'they all end up in the cookie jar in order.');
cookie_test(async t => { promise_test(async t => {
await Promise.all([ await Promise.all([
cookieStore.set('ordered-unordered1', 'unordered-cookie-value1'), cookieStore.set('ordered-unordered1', 'unordered-cookie-value1'),
cookieStore.set('ordered-unordered2', 'unordered-cookie-value2'), cookieStore.set('ordered-unordered2', 'unordered-cookie-value2'),
......
<!DOCTYPE html>
<meta charset="utf-8">
<title>Async Cookies: document.cookie (HTTPS)</title>
<meta name="help" href="https://github.com/WICG/cookie-store/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/cookie-test-helpers.js"></script>
<script src="resources/document_cookie.js"></script>
<!DOCTYPE html>
<meta charset="utf-8">
<title>Async Cookies: HTTP Cookie and Set-Cookie headers (HTTPS)</title>
<meta name="help" href="https://github.com/WICG/cookie-store/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/cookie-test-helpers.js"></script>
<script src="resources/http_cookie_and_set_cookie_headers.js"></script>
<!DOCTYPE html>
<meta charset="utf-8">
<title>Async Cookies: Test No Name and No Value (HTTPS)</title>
<meta name="help" href="https://github.com/WICG/cookie-store/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/cookie-test-helpers.js"></script>
<script src="resources/no_name_and_no_value.js"></script>
<!DOCTYPE html>
<meta charset="utf-8">
<title>Async Cookies: Test No Name, '=' in Value (HTTPS)</title>
<meta name="help" href="https://github.com/WICG/cookie-store/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/cookie-test-helpers.js"></script>
<script src="resources/no_name_equals_in_value.js"></script>
<!DOCTYPE html>
<meta charset="utf-8">
<title>Async Cookies: Test No Name, Multiple Values (HTTPS)</title>
<meta name="help" href="https://github.com/WICG/cookie-store/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/cookie-test-helpers.js"></script>
<script src="resources/no_name_multiple_values.js"></script>
<!DOCTYPE html>
<meta charset="utf-8">
<title>Async Cookies: ordering (HTTPS)</title>
<meta name="help" href="https://github.com/WICG/cookie-store/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/cookie-test-helpers.js"></script>
<script src="resources/ordering.js"></script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment