Преглед на файлове

Tests: Fixed tests broken due to non–iterable nature of DOM element attributes in MSEdge (see ckeditor/ckeditor5#479).

Aleksander Nowodzinski преди 6 години
родител
ревизия
8570c620d5
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/ckeditor5-editor-inline/tests/inlineeditorui.js

+ 1 - 1
packages/ckeditor5-editor-inline/tests/inlineeditorui.js

@@ -272,7 +272,7 @@ describe( 'InlineEditorUI', () => {
 						.then( () => {
 							const attributes = {};
 
-							for ( const attribute of domElement.attributes ) {
+							for ( const attribute of Array.from( domElement.attributes ) ) {
 								attributes[ attribute.name ] = attribute.value;
 							}