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

Tests: List ordering use case added.

Krzysztof Krztoń преди 7 години
родител
ревизия
88f4d04dea

+ 18 - 6
packages/ckeditor5-paste-from-office/tests/_data/list/index.js

@@ -12,6 +12,7 @@ import manyOneItem from './many-one-item/input.word2016.html';
 import heading1 from './heading1/input.word2016.html';
 import heading3Styled from './heading3-styled/input.word2016.html';
 import heading7 from './heading7/input.word2016.html';
+import resumeTemplate from './resume-template/input.word2016.html';
 
 import simpleNormalized from './simple/normalized.word2016.html';
 import styledNormalized from './styled/normalized.word2016.html';
@@ -21,6 +22,7 @@ import manyOneItemNormalized from './many-one-item/normalized.word2016.html';
 import heading1Normalized from './heading1/normalized.word2016.html';
 import heading3StyledNormalized from './heading3-styled/normalized.word2016.html';
 import heading7Normalized from './heading7/normalized.word2016.html';
+import resumeTemplateNormalized from './resume-template/normalized.word2016.html';
 
 import simpleModel from './simple/model.word2016.html';
 import styledModel from './styled/model.word2016.html';
@@ -30,6 +32,7 @@ import manyOneItemModel from './many-one-item/model.word2016.html';
 import heading1Model from './heading1/model.word2016.html';
 import heading3StyledModel from './heading3-styled/model.word2016.html';
 import heading7Model from './heading7/model.word2016.html';
+import resumeTemplateModel from './resume-template/model.word2016.html';
 
 export const fixtures = {
 	input: {
@@ -40,7 +43,8 @@ export const fixtures = {
 		manyOneItem,
 		heading1,
 		heading3Styled,
-		heading7
+		heading7,
+		resumeTemplate
 	},
 	normalized: {
 		simple: simpleNormalized,
@@ -50,7 +54,8 @@ export const fixtures = {
 		manyOneItem: manyOneItemNormalized,
 		heading1: heading1Normalized,
 		heading3Styled: heading3StyledNormalized,
-		heading7: heading7Normalized
+		heading7: heading7Normalized,
+		resumeTemplate: resumeTemplateNormalized
 	},
 	model: {
 		simple: simpleModel,
@@ -60,7 +65,8 @@ export const fixtures = {
 		manyOneItem: manyOneItemModel,
 		heading1: heading1Model,
 		heading3Styled: heading3StyledModel,
-		heading7: heading7Model
+		heading7: heading7Model,
+		resumeTemplate: resumeTemplateModel
 	}
 };
 
@@ -73,6 +79,7 @@ import manyOneItemSafari from './many-one-item/input.safari.word2016.html';
 import heading1Safari from './heading1/input.safari.word2016.html';
 import heading3StyledSafari from './heading3-styled/input.safari.word2016.html';
 import heading7Safari from './heading7/input.safari.word2016.html';
+import resumeTemplateSafari from './resume-template/input.safari.word2016.html';
 
 import simpleNormalizedSafari from './simple/normalized.safari.word2016.html';
 import styledNormalizedSafari from './styled/normalized.safari.word2016.html';
@@ -82,8 +89,10 @@ import manyOneItemNormalizedSafari from './many-one-item/normalized.safari.word2
 import heading1NormalizedSafari from './heading1/normalized.safari.word2016.html';
 import heading3StyledNormalizedSafari from './heading3-styled/normalized.safari.word2016.html';
 import heading7NormalizedSafari from './heading7/normalized.safari.word2016.html';
+import resumeTemplateNormalizedSafari from './resume-template/normalized.safari.word2016.html';
 
 import styledSafariModel from './styled/model.safari.word2016.html';
+import resumeTemplateSafariModel from './resume-template/model.safari.word2016.html';
 
 export const browserFixtures = {
 	safari: {
@@ -95,7 +104,8 @@ export const browserFixtures = {
 			manyOneItem: manyOneItemSafari,
 			heading1: heading1Safari,
 			heading3Styled: heading3StyledSafari,
-			heading7: heading7Safari
+			heading7: heading7Safari,
+			resumeTemplate: resumeTemplateSafari
 		},
 		normalized: {
 			simple: simpleNormalizedSafari,
@@ -105,7 +115,8 @@ export const browserFixtures = {
 			manyOneItem: manyOneItemNormalizedSafari,
 			heading1: heading1NormalizedSafari,
 			heading3Styled: heading3StyledNormalizedSafari,
-			heading7: heading7NormalizedSafari
+			heading7: heading7NormalizedSafari,
+			resumeTemplate: resumeTemplateNormalizedSafari
 		},
 		model: {
 			simple: simpleModel,
@@ -115,7 +126,8 @@ export const browserFixtures = {
 			manyOneItem: manyOneItemModel,
 			heading1: heading1Model,
 			heading3Styled: heading3StyledModel,
-			heading7: heading7Model
+			heading7: heading7Model,
+			resumeTemplate: resumeTemplateSafariModel
 		}
 	}
 };

Файловите разлики са ограничени, защото са твърде много
+ 753 - 0
packages/ckeditor5-paste-from-office/tests/_data/list/resume-template/input.safari.word2016.html


Файловите разлики са ограничени, защото са твърде много
+ 1677 - 0
packages/ckeditor5-paste-from-office/tests/_data/list/resume-template/input.word2016.html


+ 49 - 0
packages/ckeditor5-paste-from-office/tests/_data/list/resume-template/model.safari.word2016.html

@@ -0,0 +1,49 @@
+<paragraph>Your Name</paragraph>
+
+<paragraph>Address, City, ST ZIP Code | Telephone | Email</paragraph>
+
+<heading1>Objective</heading1>
+
+<paragraph>To get started right away, just click any placeholder text (such as this) and start typing to replace it with your own.</paragraph>
+
+<heading1>Education</heading1>
+
+<heading1>DEGREE | DATE EARNED | SCHOOL</heading1>
+
+<listItem listIndent="0" listType="bulleted">Major: Click here to enter text</listItem>
+<listItem listIndent="0" listType="bulleted">Minor: Click here to enter text</listItem>
+<listItem listIndent="0" listType="bulleted">Related coursework: Click here to enter text</listItem>
+
+<heading1>DEGREE | DATE EARNED | SCHOOL</heading1>
+
+<listItem listIndent="0" listType="bulleted">Major: Click here to enter text</listItem>
+<listItem listIndent="0" listType="bulleted">Minor: Click here to enter text</listItem>
+<listItem listIndent="0" listType="bulleted">Related coursework: Click here to enter text</listItem>
+
+<heading1>Skills & Abilities</heading1>
+
+<heading1>MANAGEMENT</heading1>
+
+<listItem listIndent="0" listType="bulleted">Think a document that looks this good has to be difficult to format? Think again! To easily apply any text formatting you see in this document with just a click, on the Home tab of the ribbon, check out Styles.</listItem>
+
+<heading1>SALES</heading1>
+
+<listItem listIndent="0" listType="bulleted">Some of the sample text in this document indicates the name of the style applied, so that you can easily apply the same formatting again. For example, this is the List Bullet style.</listItem>
+
+<heading1>COMMUNICATION</heading1>
+
+<listItem listIndent="0" listType="bulleted">You delivered that big presentation to rave reviews. Don’t be shy about it now! This is the place to show how well you work and play with others.</listItem>
+
+<heading1>LEADERSHIP</heading1>
+
+<listItem listIndent="0" listType="bulleted">Are you president of your fraternity, head of the condo board, or a team lead for your favorite charity? You’re a natural leader—tell it like it is!</listItem>
+
+<heading1>Experience</heading1>
+
+<heading1>JOB TITLE | COMPANY | DATES FROM - TO</heading1>
+
+<listItem listIndent="0" listType="bulleted">This is the place for a brief summary of your key responsibilities and most stellar accomplishments.</listItem>
+
+<heading1>JOB TITLE | COMPANY | DATES FROM - TO</heading1>
+
+<listItem listIndent="0" listType="bulleted">This is the place for a brief summary of your key responsibilities and most stellar accomplishments.</listItem>

+ 49 - 0
packages/ckeditor5-paste-from-office/tests/_data/list/resume-template/model.word2016.html

@@ -0,0 +1,49 @@
+<paragraph>Your Name</paragraph>
+
+<paragraph>Address, City, ST ZIP Code | Telephone | Email</paragraph>
+
+<heading1>Objective</heading1>
+
+<paragraph>To get started right away, just click any placeholder text (such as this) and start typing to replace it with your own.</paragraph>
+
+<heading1>Education</heading1>
+
+<heading1>Degree | Date Earned | School</heading1>
+
+<listItem listIndent="0" listType="bulleted">Major: Click here to enter text</listItem>
+<listItem listIndent="0" listType="bulleted">Minor: Click here to enter text</listItem>
+<listItem listIndent="0" listType="bulleted">Related coursework: Click here to enter text</listItem>
+
+<heading1>Degree | Date Earned | School</heading1>
+
+<listItem listIndent="0" listType="bulleted">Major: Click here to enter text</listItem>
+<listItem listIndent="0" listType="bulleted">Minor: Click here to enter text</listItem>
+<listItem listIndent="0" listType="bulleted">Related coursework: Click here to enter text</listItem>
+
+<heading1>Skills & Abilities</heading1>
+
+<heading1>Management</heading1>
+
+<listItem listIndent="0" listType="bulleted">Think a document that looks this good has to be difficult to format? Think again! To easily apply any text formatting you see in this document with just a click, on the Home tab of the ribbon, check out Styles.</listItem>
+
+<heading1>Sales</heading1>
+
+<listItem listIndent="0" listType="bulleted">Some of the sample text in this document indicates the name of the style applied, so that you can easily apply the same formatting again. For example, this is the List Bullet style.</listItem>
+
+<heading1>Communication</heading1>
+
+<listItem listIndent="0" listType="bulleted">You delivered that big presentation to rave reviews. Don’t be shy about it now! This is the place to show how well you work and play with others.</listItem>
+
+<heading1>Leadership</heading1>
+
+<listItem listIndent="0" listType="bulleted">Are you president of your fraternity, head of the condo board, or a team lead for your favorite charity? You’re a natural leader—tell it like it is!</listItem>
+
+<heading1>Experience</heading1>
+
+<heading1>Job Title | Company | Dates From - To</heading1>
+
+<listItem listIndent="0" listType="bulleted">This is the place for a brief summary of your key responsibilities and most stellar accomplishments.</listItem>
+
+<heading1>Job Title | Company | Dates From - To</heading1>
+
+<listItem listIndent="0" listType="bulleted">This is the place for a brief summary of your key responsibilities and most stellar accomplishments.</listItem>

Файловите разлики са ограничени, защото са твърде много
+ 198 - 0
packages/ckeditor5-paste-from-office/tests/_data/list/resume-template/normalized.safari.word2016.html


Файловите разлики са ограничени, защото са твърде много
+ 181 - 0
packages/ckeditor5-paste-from-office/tests/_data/list/resume-template/normalized.word2016.html


BIN
packages/ckeditor5-paste-from-office/tests/_data/list/resume-template/resume-template.docx