Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Tests: Fixed widget test assertions failing due to a different order …
Browse files Browse the repository at this point in the history
…of CSS classes.
  • Loading branch information
oleq committed Jan 17, 2019
1 parent 178ad5f commit b86a6d3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ describe( 'Widget', () => {
viewDocument.fire( 'mousedown', domEventDataMock );

expect( getViewData( view ) ).to.equal(
'[<div class="ck-widget ck-widget_with-selection-handler ck-widget_selected" contenteditable="false">' +
'[<div class="ck-widget ck-widget_selected ck-widget_with-selection-handler" contenteditable="false">' +
'<div class="ck-widget ck-widget_with-selection-handler" contenteditable="false">' +
'<div class="ck ck-widget__selection-handler"></div>' +
'</div>' +
Expand Down Expand Up @@ -1271,7 +1271,7 @@ describe( 'Widget', () => {
'<div class="ck-widget ck-widget_with-selection-handler" contenteditable="false">' +
'<div class="ck ck-widget__selection-handler"></div>' +
'</div>' +
'[<div class="ck-widget ck-widget_with-selection-handler ck-widget_selected" contenteditable="false">' +
'[<div class="ck-widget ck-widget_selected ck-widget_with-selection-handler" contenteditable="false">' +
'<div class="ck-widget ck-widget_with-selection-handler" contenteditable="false">' +
'<div class="ck ck-widget__selection-handler"></div>' +
'</div>' +
Expand Down Expand Up @@ -1304,7 +1304,7 @@ describe( 'Widget', () => {
viewDocument.fire( 'mousedown', domEventDataMock );

expect( getViewData( view ) ).to.equal(
'[<div class="ck-widget ck-widget_with-selection-handler ck-widget_selected" contenteditable="false">' +
'[<div class="ck-widget ck-widget_selected ck-widget_with-selection-handler" contenteditable="false">' +
'<figcaption contenteditable="true">foo bar</figcaption>' +
'<div class="ck-widget ck-widget_with-selection-handler" contenteditable="false">' +
'<div class="ck ck-widget__selection-handler"></div>' +
Expand Down Expand Up @@ -1338,7 +1338,7 @@ describe( 'Widget', () => {
'<div class="ck-widget ck-widget_with-selection-handler" contenteditable="false">' +
'<div class="ck ck-widget__selection-handler"></div>' +
'</div>' +
'[<div class="ck-widget ck-widget_with-selection-handler ck-widget_selected" contenteditable="false">' +
'[<div class="ck-widget ck-widget_selected ck-widget_with-selection-handler" contenteditable="false">' +
'<div class="ck-widget ck-widget_with-selection-handler" contenteditable="false">' +
'<div class="ck ck-widget__selection-handler"></div>' +
'</div>' +
Expand Down Expand Up @@ -1366,7 +1366,7 @@ describe( 'Widget', () => {
expect( getViewData( view ) ).to.equal(
'<div class="ck-widget ck-widget_with-selection-handler" contenteditable="false">' +
'<figcaption contenteditable="true">' +
'[<div class="ck-widget ck-widget_with-selection-handler ck-widget_selected" contenteditable="false">' +
'[<div class="ck-widget ck-widget_selected ck-widget_with-selection-handler" contenteditable="false">' +
'<div class="ck ck-widget__selection-handler"></div>' +
'</div>]' +
'</figcaption>' +
Expand Down

0 comments on commit b86a6d3

Please sign in to comment.