https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 0b3ff33c18d04b01970c030df401c7c12a175313 authored by Brad Werth on 09 April 2018, 05:37:36 UTC
Part 1: Add a web-platform test that shows shape-outside: border-box float areas are correctly clipped to margin rects.
Tip revision: 0b3ff33
access-control-expose-headers-parsing.window.js
function exposeTest(resource, desc) {
  const url = new URL("resources/" + resource, location.href).href.replace("://", "://élève.");

  promise_test(() => {
    return fetch(url).then(res => {
      assert_equals(res.headers.get("content-language"), "sure")
      assert_equals(res.headers.get("x-custom"), null);
    })
  }, "Access-Control-Expose-Headers parsing: " + desc);
}

exposeTest("access-control-expose-headers-parsing.asis", "#1");
exposeTest("access-control-expose-headers-parsing-2.asis", "#2")
back to top