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

Easy image upload refactoring #1079

Merged
merged 15 commits into from
Oct 25, 2017
Merged

Easy image upload refactoring #1079

merged 15 commits into from
Oct 25, 2017

Conversation

mlewand
Copy link
Contributor

@mlewand mlewand commented Oct 23, 2017

What is the purpose of this pull request?

Other, refactoring of other PR.

Does your PR contain necessary tests?

All patches which 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

What changes did you make?

This PR adds some fixes to #1052, the general idea was to simplify it and extract cloud-service (backend) stuff to a separate plugin.

There were already quite a few changes, many of which has been already fixed in #1062 and #1066.

Summary for this PR:

There's one issue that latest FF is extremely unstable, that's something that we need to investigate in a followup ticket.

Once this is merged, I'll just give a final check to #1052 and that will be it in terms of uploading.

@mlewand mlewand requested a review from Comandeer October 23, 2017 17:26
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.

Tests on Firefox are constantly failing on my computer – unfortunately they're seem to be broken, not just unstable.

@@ -438,6 +430,30 @@
} );

wait();
},

'test cloudservices URL can be customized': function( editor ) {
Copy link
Member

Choose a reason for hiding this comment

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

Not only URL can be customised, but also loader type and additional request parameters. It'd be nice to have also tests for these.

@mlewand
Copy link
Contributor Author

mlewand commented Oct 24, 2017

For reasons unknown to me firefox fires 8 img load events in vs 6 in other browsers.

Without getting into details I have changed listener type to once instead.

This test suite relies on img#load event, with img[src="data:image/png;base64,..."] value, so it might hit some quirky edge cases.

Also I have added requested test cases.

@mlewand mlewand requested a review from Comandeer October 24, 2017 15:46
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.

LGTM

@Comandeer Comandeer merged commit 30b70cb into t/932-3001 Oct 25, 2017
@Comandeer Comandeer deleted the t/932-3001c branch October 25, 2017 09:20
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