Hi Paul, I have the tests succeeding at testing what I want them to test so far, but the second test is failing over side-effects I don't understand, likely from me using *BrowserTestUtils.withNewTab* wrong. I based this off similar tests in SitePermissions, so I was hoping you could help me out with some pointers. Do you know what's going on here? Also, do you know any way to get around this annoying lint error? ``` ★ ~/moz/mozilla-central $ hg amend /Users/Jan/moz/mozilla-central/browser/base/content/test/webrtc/browser_devices_get_user_media_grace.js 12:43 error listen for events instead of setTimeout() with arbitrary delay mozilla/no-arbitrary-setTimeout (eslint) ✖ 1 problem (1 error, 0 warnings, 15 fixed) ``` I need to use setTimeout to test the grace period.
Bug 1693677 Comment 7 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Hi Paul, I have the tests succeeding at testing what I want them to test so far, but the second test is failing over side-effects I don't understand, likely from me using *BrowserTestUtils.withNewTab* wrong. I based this off similar tests in SitePermissions, so I was hoping you could help me out with some pointers. Do you know what's going on here? Also, do you know any way to get around this annoying lint error? ``` ★ ~/moz/mozilla-central $ hg amend /Users/Jan/moz/mozilla-central/browser/base/content/test/webrtc/browser_devices_get_user_media_grace.js 12:43 error listen for events instead of setTimeout() with arbitrary delay mozilla/no-arbitrary-setTimeout (eslint) ✖ 1 problem (1 error, 0 warnings, 15 fixed) ``` I need to use setTimeout to test the grace period (or is there a better way?)