瀏覽代碼

Tests: Stabilized ToolbarView tests after refactoring.

Aleksander Nowodzinski 6 年之前
父節點
當前提交
b91efcd58e
共有 2 個文件被更改,包括 389 次插入453 次删除
  1. 5 5
      packages/ckeditor5-ui/src/toolbar/toolbarview.js
  2. 384 448
      packages/ckeditor5-ui/tests/toolbar/toolbarview.js

+ 5 - 5
packages/ckeditor5-ui/src/toolbar/toolbarview.js

@@ -187,7 +187,7 @@ export default class ToolbarView extends View {
 		 *
 		 * See {@link module:ui/toolbar/toolbarview~ToolbarFeature} to learn more.
 		 *
-		 * @private
+		 * @protected
 		 * @readonly
 		 * @member {module:ui/toolbar/toolbarview~ToolbarFeature}
 		 */
@@ -399,7 +399,7 @@ class DynamicGrouping {
 		 * When none of the {@link module:ui/toolbar/toolbarview~ToolbarView#items} were grouped, it
 		 * matches the {@link module:ui/toolbar/toolbarview~ToolbarView#items} collection in size and order.
 		 *
-		 * @private
+		 * @protected
 		 * @readonly
 		 * @member {module:ui/viewcollection~ViewCollection}
 		 */
@@ -413,7 +413,7 @@ class DynamicGrouping {
 		 * When none of the {@link module:ui/toolbar/toolbarview~ToolbarView#items} were grouped,
 		 * this collection is empty.
 		 *
-		 * @private
+		 * @protected
 		 * @readonly
 		 * @member {module:ui/viewcollection~ViewCollection}
 		 */
@@ -425,7 +425,7 @@ class DynamicGrouping {
 		 * {@link module:ui/toolbar/toolbarview~ToolbarView#children toolbar children} and offers another
 		 * (nested) toolbar which displays items that would normally overflow.
 		 *
-		 * @private
+		 * @protected
 		 * @readonly
 		 * @member {module:ui/dropdown/dropdownview~DropdownView}
 		 */
@@ -532,7 +532,7 @@ class DynamicGrouping {
 	 * {@link #_groupedItems} to be returned back to {@link #_ungroupedItems} and still fit into a single row
 	 * without the toolbar wrapping.
 	 *
-	 * @private
+	 * @protected
 	 */
 	_updateGrouping() {
 		const view = this.view;

文件差異過大導致無法顯示
+ 384 - 448
packages/ckeditor5-ui/tests/toolbar/toolbarview.js