Re: [presentation-api-tests] [presentation-api] Refine getAvailability() test (#4257)

I've updated the tests, which would follow recent changes in the spec.

* They revert to automated tests, and the file name reverts to getAvailability.html.
* A test to check if `getAvailability` returns the same Promise when the `PresentationRequest` object has an unsettled Promise.
* A test to check if a Promise from `getAvailability` called a second time is resolved with the same `PresentationAvailability` instance remains, since there still exists "If the presentation display availability for presentationRequest is not null, then Resolve P with the request's presentation display availability" in the current spec (step 6. in [Getting the presentation displays availability information](http://w3c.github.io/presentation-api/#getting-the-presentation-displays-availability-information)).

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

Received on Thursday, 22 December 2016 02:07:36 UTC