Selaa lähdekoodia

Tests: Added table and table cell properties to the widget type around manual test.

Aleksander Nowodzinski 5 vuotta sitten
vanhempi
commit
96609c4b3e

+ 2 - 2
packages/ckeditor5-widget/tests/manual/type-around.html

@@ -39,13 +39,13 @@
 					<td>&nbsp;</td>
 					<td>
 						<figure class="media">
-							<div data-oembed-url="https://www.youtube.com/watch?v=ZVv7UMQPEWk"><div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/ZVv7UMQPEWk" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen=""></iframe></div></div>
+							<div data-oembed-url="https://www.youtube.com/watch?v=ZVv7UMQPEWk"></div>
 						</figure>
 					</td>
 				</tr>
 				<tr>
 					<td>&nbsp;</td>
-					<td>
+					<td style="background: hsl(0,100%,0%)">
 						<p>&nbsp;</p>
 						<figure class="image"><img src="sample.jpg" alt="bar">
 							<figcaption>Caption</figcaption>

+ 6 - 2
packages/ckeditor5-widget/tests/manual/type-around.js

@@ -9,6 +9,8 @@ import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor'
 import ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articlepluginset';
 import HorizontalLine from '@ckeditor/ckeditor5-horizontal-line/src/horizontalline';
 import MediaEmbed from '@ckeditor/ckeditor5-media-embed/src/mediaembed';
+import TableProperties from '@ckeditor/ckeditor5-table/src/tableproperties';
+import TableCellProperties from '@ckeditor/ckeditor5-table/src/tablecellproperties';
 
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
@@ -96,7 +98,7 @@ document.querySelector( '#toggleReadOnly' ).addEventListener( 'click', () => {
 
 ClassicEditor
 	.create( document.querySelector( '#editor' ), {
-		plugins: [ ArticlePluginSet, HorizontalLine, InlineWidget, MediaEmbed ],
+		plugins: [ ArticlePluginSet, HorizontalLine, InlineWidget, MediaEmbed, TableProperties, TableCellProperties ],
 		toolbar: [
 			'heading',
 			'|',
@@ -123,7 +125,9 @@ ClassicEditor
 			contentToolbar: [
 				'tableColumn',
 				'tableRow',
-				'mergeTableCells'
+				'mergeTableCells',
+				'tableProperties',
+				'tableCellProperties'
 			]
 		}
 	} )