mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
add unit test for isInDisplayBounds and config.js (#66)
* add unit test for util: isInDisplayBounds * add tests for config.js
This commit is contained in:
@@ -158,10 +158,10 @@ function saveUserConfig(fieldName, newValue, oldConfig) {
|
||||
if (err) {
|
||||
reject(err);
|
||||
} else {
|
||||
resolve();
|
||||
resolve(newConfig);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = { getConfigField, updateConfigField };
|
||||
module.exports = { getConfigField, updateConfigField, configFileName };
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
const electron = require('electron');
|
||||
|
||||
|
||||
/**
|
||||
* Returns true if given rectangle is contained within the workArea of at
|
||||
* least one of the screens.
|
||||
|
||||
@@ -348,6 +348,7 @@ function sendChildWinBoundsChange(window) {
|
||||
let newBounds = getWindowSizeAndPosition(window);
|
||||
if (newBounds && boundsChangeWindow) {
|
||||
newBounds.windowName = window.winName;
|
||||
// ipc msg back to renderer to inform bounds has changed.
|
||||
boundsChangeWindow.send('boundsChange', newBounds);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user