Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix test
  • Loading branch information
kangyizhang committed Sep 5, 2019
commit e8ee724dab4bfa692cfc4ec9000459b348fef51f
2 changes: 1 addition & 1 deletion tfjs-data/src/iterators/webcam_iterator_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ describeBrowserEnvs('WebcamIterator', () => {
expect(result2.done).toBeTruthy();
expect(result2.value).toBeNull();

await webcamIterator.start();
// Skip validation when it's in Firefox and Mac OS, because BrowserStack for
// Firefox does not trigger the readyState event when restarting.
if (navigator.userAgent.search('Firefox') < 0 &&
navigator.userAgent.search('OS X') < 0) {
await webcamIterator.start();
await replaceHTMLVideoElementSource(videoElement);
const result3 = await webcamIterator.next();
expect(result3.done).toBeFalsy();
Expand Down