Re: [w3c/ServiceWorker] How to test "no-referrer-when-downgrade" in a web platform test (#1094)

> Also, aren't there other tests for mixed content already in WPT.

Yes. https://github.com/w3c/web-platform-tests/tree/master/mixed-content. Also Referrer Policy: https://github.com/w3c/web-platform-tests/tree/master/referrer-policy/ (though I'm pretty sure neither of those have substantial coverage of requests made from within service workers).

> I've also learned we indeed have a external configuration mechanism via testharnessreporter.js:
https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/resources/testharnessreport.js

The default implementation of that file in WPT is empty. We don't use it to configure non-default settings, nor to expose APIs that tests can/should rely upon. It's certainly worth talking about adding such a thing (and I think Web Bluetooth was interested in doing so for testing APIs?), but that's a larger question.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1094#issuecomment-289408812

Received on Monday, 27 March 2017 10:01:35 UTC