-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Edge, Safari] ckeditor5-editor-* CI jobs fail on 15th test #1715
Comments
Those tests should be skipped when function skipIfNoGarbageCollector() {
before( function() {
if ( !window.gc ) {
this.skip();
}
} );
} But maybe this object is available on Edge? :| Or I'm mistaken that this is about that test. |
One more job: https://travis-ci.org/ckeditor/ckeditor5-editor-balloon/jobs/521399230 Here, both Safari and Edge failed: I've just checked that |
It is not about the GC. This test is invalid and breaks everything: it( 'initializes with config.initialData', () => {
return InlineEditor.create( editorElement, {
initialData: '<p>Hello world!</p>',
plugins: [ Paragraph ]
} ).then( editor => {
expect( editor.getData() ).to.equal( '<p>Hello world!</p>' );
editor.destroy();
} );
} ); |
It should be: it( 'initializes with config.initialData', () => {
const editorElement = document.createElement( 'div' );
document.body.appendChild( editorElement );
return InlineEditor.create( editorElement, {
initialData: '<p>Hello world!</p>',
plugins: [ Paragraph ]
} ).then( editor => {
expect( editor.getData() ).to.equal( '<p>Hello world!</p>' );
editor.destroy();
editorElement.remove();
} );
} ); or even more correct solution: it( 'initializes with config.initialData', () => {
const editorElement = document.createElement( 'div' );
document.body.appendChild( editorElement );
return InlineEditor.create( editorElement, {
initialData: '<p>Hello world!</p>',
plugins: [ Paragraph ]
} ).then( editor => {
expect( editor.getData() ).to.equal( '<p>Hello world!</p>' );
return editor.destroy();
} ).then( () => {
editorElement.remove();
} );
} ); |
I assume that the editor does not know what to do. We passed |
Because we removed BrowserStack from our CI (#1742 (comment)), could we agree that this ticket is no longer valid? |
After removing BS, all tests pass. I am closing the ticket. |
https://travis-ci.org/ckeditor/ckeditor5-editor-inline/jobs/521399249
My guess will be the memory leak tests make that browser unresponsive. I'd switch them off on Edge because its engine is dead anyway.
The text was updated successfully, but these errors were encountered: