[w3c/screen-orientation] Double check lock(), event, re/unlock() behaviors (#151)

Given the updated event model in the spec, we need to check the following:

```JS
const p = screen.orientation.lock("landscape");
screen.orientation.onchange = () => orientation.lock("any");
await p; // rejects? 
```

And what happens if:

```JS
const p = screen.orientation.lock("landscape");
screen.orientation.onchange = () => orientation.unlock();
await p; // rejects? 
```

Need to confirm in the spec steps.... we should add tests for this too. 

-- 
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/screen-orientation/issues/151

Received on Wednesday, 13 February 2019 08:04:48 UTC