web-platform-tests / rfcs

web-platform-tests RFCs
75 stars 63 forks source link

RFC 115: Add a new test method that returns AbortSignal #115

Closed saschanaz closed 1 year ago

saschanaz commented 2 years ago

This corresponds to https://github.com/web-platform-tests/wpt/issues/34526 and https://github.com/web-platform-tests/wpt/pull/34668.

foolip commented 1 year ago

A lot of time has passed without further feedback, so this RFC has passed.

saschanaz commented 1 year ago

Thanks for merging! I was a bit hesitant with the feature detection and was wondering whether there is a consistent way to fail early. Maybe generating an object like:

({
  get signal() {
    return signal; // bail out if this is not called
  }
})

But I'm not sure how to make it actually usable. Probably the best way is for each test to feature detect for each API.