Revision 6ff8cb60aab43a83cc52b509b2eede8c474db652 authored by Eric Willigers on 05 September 2018, 09:19:05 UTC, committed by Eric Willigers on 05 September 2018, 09:37:23 UTC
Test the parsing and serialization of the longhand properties from CSS Animations and CSS Transitions. Relevant browser bugs: Edge animation-duration should reject negatives https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/18347049/ Edge and Safari incorrectly accept unitless 0 on <time> values https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/18348525/ https://bugs.webkit.org/show_bug.cgi?id=113230
1 parent beeef72
no-cors.any.js
// META: script=/common/utils.js
// META: script=/common/get-host-info.sub.js
promise_test(async function() {
const stash = token(),
origins = get_host_info(),
redirectPath = "/fetch/origin/resources/redirect-and-stash.py";
// Cross-origin -> same-origin will result in setting the tainted origin flag for the second
// request.
let url = origins.HTTP_ORIGIN + redirectPath + "?stash=" + stash;
url = origins.HTTP_REMOTE_ORIGIN + redirectPath + "?stash=" + stash + "&location=" + encodeURIComponent(url);
await fetch(url, { mode: "no-cors", method: "POST" });
const json = await (await fetch(redirectPath + "?dump&stash=" + stash)).json();
assert_equals(json[0], origins.HTTP_ORIGIN, "first origin should equal this origin");
assert_equals(json[1], "null", "second origin should be opaque and therefore null");
}, "Origin header and 308 redirect");
Computing file changes ...