Re: [referrer-policy-tests][test-infra] Referrer policy test case (#1814)

## Update on the current state of the PR ##

* All the test logic now lies in /referrer-policy/generic/common.js and /referrer-policy/generic/referrer-policy-test-case.js

* Each test case is expanded (generated) from the specification in spec.json.

* The spec.json is currently reduced and not listing all the w3 spec requirements.

  * Some delivery methods and HTTP(S) protocol transitions are still omitted.

  * Only iframe and image is being tested as a subresource.

* Some tests fail - I'm investigating if it's due to non-existing implementation according to the new soon-to-be w3 spec for the test case or some other issue in my PR.

* There is an additonal test for decoding HTTP headers from a PNG image generated by ./referrer-policy/generic/image.py in ./referrer-policy/generic/image-decoding-test.html

## Testing the PR: ##

Once pulled in the branch: 

```
cd ~/web-platform-tests

# Generate all the test files.
./referrer-policy/generic/tools/generate.py

# Not sure if this is the right way, but ./manifest suggests the files are 
# generated from the source tree.
# Commit generated files for the MANIFEST.json
git checkout -b temp_referrer_policy
git add ./referrer-policy 
git commit -m "Temporary commit for testing Referrer Policy test cases."

# Generate the manifest and start the server.
./manifest && ./serve

# Navigate to http://web-platform.test:8000/tools/runner/index.html
# Run tests under path: "/referrer-policy"
# Click start
```

@mikewest, @jeisinger 



View on GitHub: https://github.com/w3c/web-platform-tests/pull/1814#issuecomment-100933155

Received on Monday, 11 May 2015 14:51:47 UTC