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

Lazy loading for the font color/bg dropdowns #60

Merged
merged 8 commits into from
Feb 12, 2020
Prev Previous commit
Next Next commit
Tests: Fixed tests but the fix is pretty ugly.
  • Loading branch information
mlewand committed Feb 12, 2020
commit db8e7a4711050e209b4cd2bff9faea02aef4f3d0
2 changes: 2 additions & 0 deletions tests/ui/colortableview.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ describe( 'ColorTableView', () => {
removeButtonLabel: 'Remove color',
documentColorsCount: 0
} );
colorTableView.renderGrids();
colorTableView.render();
} );

Expand Down Expand Up @@ -420,6 +421,7 @@ describe( 'ColorTableView', () => {

dropdown = editor.ui.componentFactory.create( 'testColor' );
dropdown.isOpen = true;
dropdown.isOpen = false;
dropdown.render();

staticColorsGrid = dropdown.colorTableView.staticColorsGrid;
Expand Down