fix: ELECTRON-1243: fix chrome flags tests (#696)

* ELECTRON-1243: add support to control throttling

* ELECTRON-1243: fix chrome flags tests

* ELECTRON-1243: refactor code and address PR comments
This commit is contained in:
Vishwas Shashidhar
2019-07-02 16:24:17 +05:30
committed by GitHub
parent 63534d04cd
commit 918c5741a6
9 changed files with 32 additions and 7 deletions
+3 -2
View File
@@ -89,8 +89,9 @@ describe('chrome flags', () => {
expect(spy).nthCalledWith(4, 'disable-d3d11', true);
expect(spy).nthCalledWith(5, 'disable-gpu', true);
expect(spy).nthCalledWith(6, 'disable-gpu-compositing', true);
expect(spy).nthCalledWith(7, 'remote-debugging-port', '5858');
expect(spy).nthCalledWith(8, 'host-rules', 'MAP * 127.0.0.1');
expect(spy).nthCalledWith(7, 'disable-renderer-backgrounding', 'false');
expect(spy).nthCalledWith(8, 'remote-debugging-port', '5858');
expect(spy).nthCalledWith(9, 'host-rules', 'MAP * 127.0.0.1');
});
it('should return `undefined` when `chromeFlagsFromCmd` is null', () => {