Opened 9 years ago

Last modified 9 years ago

#13916 closed Bug

[IE9] tests/core/selection/fake test is not passing on IE9 when console window is opened. — at Initial Version

Reported by: Szymon Kupś Owned by:
Priority: Normal Milestone: CKEditor 4.5.7
Component: General Version: 4.5.4
Keywords: IE9 Cc:

Description

Run: http://test.ckedtior.dev:1030/tests/core/selection/fake Test Fake-selection bookmark mark as not faked when no enclosed node found. (#13280) is not passing when console window is opened.

This is caused (probably) by this code:

if ( window.console ) {
	// Override to avoid logging the CKE's warning about selection not being fake any more,
	// so the console stays clean when the test passes.
	var consoleLogSpy = sinon.stub( window.console, 'log' );
}

When console is opened we try to stub console.log method but sinon library fails on native IE9 implementation and throws an error Attempted to wrap object property log as function. Same problem was solved in tests/core/log.js.

Change History (0)

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy