~cadence/referrer-policy-test

49d7ebdf8e5c7bef3044a23d22df0bb2e902344c — Cadence Ember 1 year, 3 months ago 66a8bd1
Number the test cases
1 files changed, 7 insertions(+), 5 deletions(-)

M referrer-policy-test.rkt
M referrer-policy-test.rkt => referrer-policy-test.rkt +7 -5
@@ 72,15 72,17 @@
                   `(link ((rel "stylesheet") (type "text/css") (href ,path)))))
         (body
          (h1 "Referrer-Policy Header Test")
          (h2 "Image from <img> element in document")
          (p "Main document is served with "
             (code "Referrer-Policy: no-referrer"))
          (h2 "#1: Image from <img> element in document")
          (div ((class "test-case")) (img ((src "/img/element"))))
          (h2 "Image from style attribute")
          (h2 "#2: Image from style attribute")
          (div ((class "test-case") (style "background-image: url(/img/inline-style)")))
          (h2 "Image from same-origin stylesheet, no extra headers")
          (h2 "#3: Image from same-origin stylesheet, no extra headers")
          (div ((class "test-case same-origin-no-extra-img")))
          (h2 "Image from same-origin stylesheet with " (code "Referrer-Policy: no-referrer"))
          (h2 "#4: Image from same-origin stylesheet with " (code "Referrer-Policy: no-referrer"))
          (div ((class "test-case same-origin-policy-no-referrer-img")))
          (h2 "Image from same-origin stylesheet with " (code "Referrer-Policy: origin"))
          (h2 "#5: Image from same-origin stylesheet with " (code "Referrer-Policy: origin"))
          (div ((class "test-case same-origin-policy-origin-img"))))))))
   (make-css-route "/style/default.css" null "
body { font: 16px sans-serif; }