https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d1463947fea0898b42b2cb1bfd8ee40b1619bc71 authored by Simon Pieters on 27 August 2018, 13:57:36 UTC
Rename dir
Tip revision: d146394
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