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

Fix issue 4282 - During the uploaded scripts check the scriptLoader checks only 50 per cent of them and doesn’t execute callback #4283

Merged
merged 6 commits into from Sep 25, 2020

Conversation

aldoom
Copy link
Contributor

@aldoom aldoom commented Sep 16, 2020

Fix issue 4282 - During the uploaded scripts check the scriptLoader checks only 50 per cent of them and doesn’t execute callback.

What is the purpose of this pull request?

Does your PR contain necessary tests?

All patches that change the editor code must include tests. You can always read more
on PR testing,
how to set the testing environment and
how to create tests
in the official CKEditor documentation.

This PR contains

  • Unit tests
  • Manual tests

Did you follow the CKEditor 4 code style guide?

Your code should follow the guidelines from the CKEditor 4 code style guide which helps keep the entire codebase consistent.

  • PR is consistent with the code style guide

What is the proposed changelog entry for this pull request?

* [#4282](https://github.com/ckeditor/ckeditor4/issues/4282): Describe the purpose of the pull request in a few simple sentences.

What changes did you make?

Give an overview…

Which issues does your PR resolve?

Closes #4282.

Copy link
Contributor

@f1ames f1ames left a comment

Choose a reason for hiding this comment

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

Thanks for contribution @aldoom!

Your pull request is missing tests, see our Contributing Code guide for more details. If you have any issues adding them, feel free to reach out so we can assist.

You may also take a look at existing scriptLoader tests.

@aldoom
Copy link
Contributor Author

aldoom commented Sep 21, 2020

With patch
Firefox_Screenshot_2020-09-21T17-19-26 306Z

Without path
Firefox_Screenshot_2020-09-21T17-20-04 271Z

@aldoom aldoom requested a review from f1ames September 21, 2020 17:57
@f1ames f1ames changed the title Fix issue 4282 - During the uploaded scripts check the scriptLoader checks only 50 per cent of them and doesn’t execute callback. Fix issue 4282 - During the uploaded scripts check the scriptLoader checks only 50 per cent of them and doesn’t execute callback Sep 22, 2020
@Comandeer Comandeer self-requested a review September 22, 2020 13:15
@Comandeer Comandeer self-assigned this Sep 22, 2020
Copy link
Member

@Comandeer Comandeer left a comment

Choose a reason for hiding this comment

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

Fix seems to work correctly, good job!

There are only some small issues:

  1. Could you move the unit test to the file dedicated to script loader (tests/core/scriptloader.js)?
  2. Could you rebase the branch onto master and target it to master (instead of major)?

@f1ames f1ames requested review from Comandeer and removed request for f1ames September 23, 2020 09:14
@aldoom aldoom changed the base branch from major to master September 23, 2020 09:38
@aldoom
Copy link
Contributor Author

aldoom commented Sep 23, 2020

Fix seems to work correctly, good job!

There are only some small issues:

1. Could you move the unit test to the file dedicated to script loader (`tests/core/scriptloader.js`)?

2. Could you rebase the branch onto `master` and target it to `master` (instead of `major`)?

Done

@aldoom aldoom requested a review from f1ames September 24, 2020 20:01
…hecks only 50 per cent of them and doesn’t execute callback.
…hecks only 50 per cent of them and doesn’t execute callback.

+ Test
…hecks only 50 per cent of them and doesn’t execute callback
@f1ames
Copy link
Contributor

f1ames commented Sep 25, 2020

Rebased onto latest master.

Copy link
Contributor

@f1ames f1ames left a comment

Choose a reason for hiding this comment

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

I just slightly reworked unit tests. Also run all core tests for all the browsers and it looks good too 👍

LGTM 👍 Thanks @aldoom for contribution 👏 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants