Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Electron mock #158

Merged
merged 8 commits into from
Jul 8, 2016
Merged

Update Electron mock #158

merged 8 commits into from
Jul 8, 2016

Conversation

jhen0409
Copy link
Collaborator

@jhen0409 jhen0409 commented Jul 6, 2016

The chrome.runtime.sendMessage is related to electron-react-boilerplate/electron-react-boilerplate#266.

The chrome.storage.local is officially supported on v1.2.6, we can check it exists.

@jhen0409 jhen0409 changed the title Update Electron mock [WIP] Update Electron mock Jul 6, 2016
avoid send responseCallback, currently it's unnecessary for Electron
@jhen0409 jhen0409 changed the title [WIP] Update Electron mock Update Electron mock Jul 6, 2016
@jhen0409
Copy link
Collaborator Author

jhen0409 commented Jul 6, 2016

It looks copy:build:extension task not work in npm@2 (codemirror dependency), so it get more logs on console of main window.

@@ -24,7 +24,7 @@ if (
}

if (window.isElectron) {
chrome.storage.local = {
chrome.storage.local = chrome.storage.local || {
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe just to wrap in if (chrome.storage.local) {} here? So it would be clearer for other contributors what is happening here.

@zalmoxisus
Copy link
Owner

@jhen0409, thanks! Would you add codemirror dependency here to fix that test?

@jhen0409
Copy link
Collaborator Author

jhen0409 commented Jul 7, 2016

It's passed on Travis. :)

@zalmoxisus
Copy link
Owner

@jhen0409, any ideas why AppVeyor fails always at running tests for electron? I re-built the pr several times and always the same :-/

also add 5 attempts for find Redux tab
@jhen0409
Copy link
Collaborator Author

jhen0409 commented Jul 7, 2016

The last commit should fixed the problem, we need to wait loading time for Redux tab, and it looks very slow (9 seconds). 😂

@zalmoxisus
Copy link
Owner

Thanks a lot!

@zalmoxisus zalmoxisus merged commit 51c2516 into zalmoxisus:master Jul 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants