Skip to content
This repository has been archived by the owner on Jun 9, 2019. It is now read-only.

browser version configuration #35

Open
mohayonao opened this issue Dec 12, 2015 · 0 comments
Open

browser version configuration #35

mohayonao opened this issue Dec 12, 2015 · 0 comments

Comments

@mohayonao
Copy link
Owner

implements:

class AudioContext {
  @version({ chrome: "41-", opera: "28-", firefox: "37-", safari: "none" })
  createStereoPanner() { ... }
}

usage:

WebAudioTestAPI.setTargetVersion({ chrome: 45, firefox: 40 });

// safari: ignored
assert.doesNotThrow(() => { audioContext.createStereoPanner(); }); 

WebAudioTestAPI.setTargetVersion({ chrome: 45, firefox: 40, safari: 9 });

assert.throws(() => { audioContext.createStereoPanner(); });
// -> Error: Not supported API in safari 9
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant