mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
ELECTRON-485 (Add throttle of 1 sec for activate, bringToFront and setLocale to prevent DoS attacks) (#414)
- Add throttle of 1 sec for activate, bringToFront and setLocale to prevent DoS attacks - Skip resize Spectron test case for Mac
This commit is contained in:
committed by
Vishwas Shashidhar
parent
cc39f43ee7
commit
a18f3eb64c
@@ -3,8 +3,10 @@ const robot = require('robotjs');
|
||||
const {isMac} = require('../../js/utils/misc');
|
||||
|
||||
let app = new Application({});
|
||||
let defaultWidth;
|
||||
let defaultHeight;
|
||||
|
||||
describe('Tests for Resizing windows', () => {
|
||||
!isMac ? describe('Tests for Resizing windows', () => {
|
||||
|
||||
let originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = Application.getTimeOut();
|
||||
@@ -45,9 +47,6 @@ describe('Tests for Resizing windows', () => {
|
||||
* Cover scenarios in AVT-768
|
||||
*/
|
||||
it('should be minimized up to 300px', (done) => {
|
||||
if (isMac) {
|
||||
return done();
|
||||
}
|
||||
app.browserWindow.getBounds().then((bounds) => {
|
||||
defaultHeight = bounds.height;
|
||||
defaultWidth = bounds.width;
|
||||
@@ -67,4 +66,4 @@ describe('Tests for Resizing windows', () => {
|
||||
})
|
||||
});
|
||||
});
|
||||
});
|
||||
}) : describe.skip();
|
||||
Reference in New Issue
Block a user