Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Autoupdate : Adding unit-test module#14306

Open
mbhavi wants to merge 4 commits intoadobe:masterfrom
mbhavi:mbhavi/AutoUpdateUnitTests
Open

Autoupdate : Adding unit-test module#14306
mbhavi wants to merge 4 commits intoadobe:masterfrom
mbhavi:mbhavi/AutoUpdateUnitTests

Conversation

@mbhavi
Copy link
Copy Markdown
Contributor

@mbhavi mbhavi commented May 7, 2018

Autoupdate : Adding unit-test module

ping @swmitra, @shubhsnov , @navch for review

@navch
Copy link
Copy Markdown
Contributor

navch commented May 8, 2018

Can you please link the bugs which you have fixed as part of this PR?

@mbhavi
Copy link
Copy Markdown
Contributor Author

mbhavi commented May 8, 2018

@navch , i have added the reference to the bugs above.

needButtons: true
});
setAutoUpdateSessionInProgress(false);
showUpdateBar( Strings.DOWNLOAD_COMPLETE, Strings.CLICK_RESTART_TO_UPDATE, null, true);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's best to keep optional parameters at the last, so that we can avoid passing arguments like null or empty objects. See if this can be fixed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in ae6348d

@mbhavi
Copy link
Copy Markdown
Contributor Author

mbhavi commented May 9, 2018

I have split the PR into 2 independent PR's : one for bug fixes, and one for unit tests.
The bug fixes one can be found here : #14320

@mbhavi mbhavi changed the title Autoupdate : Adding unit-test module, bug fixes for multiple windows Autoupdate : Adding unit-test module May 19, 2018
_nodePath = "node/AutoUpdateDomain",
_domainPath = [_modulePath, _nodePath].join("/"),
updateDomain;
updateDomain,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes should not be part of this PR, as they are already present in 14320

* @param {boolean} test - boolean to denote whether the API is invoked for unit testing
*/
function _updateProcessHandler(updates) {
function _updateProcessHandler(updates, test) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of passing a test parameter, we can have explicit test APIs which mock the normal behavior, á la ExtensionLoader.js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants