Re: [mediacapture-main] MUST clear requirement for deviceId

Could a test for this be something along the lines of?:

Two origins are used, X and Y.

Preamble
========
Clear all cookies for X and Y

Phase 1
========
Open one tab at X and one at Y, enumerateDevices for both, log results
 as X1 and Y1, and compare (make sure they have different Id's)

Phase 2
========
Close X-tab,  open a new tab at X, enumerateDevices, log result as X2,
 and compare (make sure the Id's differ for X1 and Y1)

Phase 3
========
Do gUM at X-tab for one of the devices, have the user reject access

Phase 4
=======
Close X-tab,  open a new tab at X, enumerateDevices, log result as X3,
 and compare (make sure the Id's differ for X1, X2 and Y1)

Phase 5
=======
Do gUM at X-tab for one of the devices, have the user accepct access 
(but not give persisted permission if that option is available)

Phase 6
=======
Close X-tab,  open a new tab at X, enumerateDevices, log result as X4,
 and compare (make sure X4 == X3)

Phase 7
=======
Close X-tab,  clear all cookies for X, open a new tab at X, 
enumerateDevices, log result as X5, and compare (make sure the Id's 
differ between X1, X2, X3 (==X4) and Y1)


-- 
GitHub Notification of comment by stefhak
Please view or discuss this issue at 
https://github.com/w3c/mediacapture-main/issues/359#issuecomment-220522156
 using your GitHub account

Received on Friday, 20 May 2016 05:43:41 UTC