Răsfoiți Sursa

Tests: Fixtures for Safari image integration tests added.

Krzysztof Krztoń 7 ani în urmă
părinte
comite
d54cfbf0ca
21 a modificat fișierele cu 110 adăugiri și 6 ștergeri
  1. 0 2
      packages/ckeditor5-paste-from-office/tests/_data/image/adjacent-groups/input.safari.word2016.html
  2. 0 0
      packages/ckeditor5-paste-from-office/tests/_data/image/adjacent-groups/input.safari.word2016.txt
  3. 29 0
      packages/ckeditor5-paste-from-office/tests/_data/image/adjacent-groups/model.safari.word2016.html
  4. 1 1
      packages/ckeditor5-paste-from-office/tests/_data/image/adjacent-groups/normalized.safari.word2016.html
  5. 0 0
      packages/ckeditor5-paste-from-office/tests/_data/image/alternative-text/input.safari.word2016.txt
  6. 1 0
      packages/ckeditor5-paste-from-office/tests/_data/image/alternative-text/model.safari.word2016.html
  7. 45 3
      packages/ckeditor5-paste-from-office/tests/_data/image/index.js
  8. 0 0
      packages/ckeditor5-paste-from-office/tests/_data/image/linked/input.safari.word2016.txt
  9. 2 0
      packages/ckeditor5-paste-from-office/tests/_data/image/linked/model.safari.word2016.html
  10. 3 0
      packages/ckeditor5-paste-from-office/tests/_data/image/offline/input.safari.word2016.txt
  11. 3 0
      packages/ckeditor5-paste-from-office/tests/_data/image/offline/model.safari.word2016.html
  12. 0 0
      packages/ckeditor5-paste-from-office/tests/_data/image/online-offline/input.safari.word2016.txt
  13. 8 0
      packages/ckeditor5-paste-from-office/tests/_data/image/online-offline/model.safari.word2016.html
  14. 0 0
      packages/ckeditor5-paste-from-office/tests/_data/image/reflection/input.safari.word2016.txt
  15. 2 0
      packages/ckeditor5-paste-from-office/tests/_data/image/reflection/model.safari.word2016.html
  16. 0 0
      packages/ckeditor5-paste-from-office/tests/_data/image/rotated/input.safari.word2016.txt
  17. 1 0
      packages/ckeditor5-paste-from-office/tests/_data/image/rotated/model.safari.word2016.html
  18. 0 0
      packages/ckeditor5-paste-from-office/tests/_data/image/shapes-online-offline/input.safari.word2016.txt
  19. 13 0
      packages/ckeditor5-paste-from-office/tests/_data/image/shapes-online-offline/model.safari.word2016.html
  20. 1 0
      packages/ckeditor5-paste-from-office/tests/_data/image/wrapped/input.safari.word2016.txt
  21. 1 0
      packages/ckeditor5-paste-from-office/tests/_data/image/wrapped/model.safari.word2016.html

Fișier diff suprimat deoarece este prea mare
+ 0 - 2
packages/ckeditor5-paste-from-office/tests/_data/image/adjacent-groups/input.safari.word2016.html


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/adjacent-groups/input.safari.word2016.txt


+ 29 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/adjacent-groups/model.safari.word2016.html

@@ -0,0 +1,29 @@
+<paragraph></paragraph>
+<table>
+	<tableRow>
+		<tableCell><paragraph></paragraph></tableCell>
+		<tableCell><paragraph></paragraph></tableCell>
+		<tableCell><paragraph></paragraph></tableCell>
+	</tableRow>
+	<tableRow>
+		<tableCell><paragraph></paragraph></tableCell>
+		<tableCell colspan="2"><paragraph></paragraph></tableCell>
+	</tableRow>
+	<tableRow>
+		<tableCell><paragraph></paragraph></tableCell>
+	</tableRow>
+	<tableRow>
+		<tableCell><paragraph></paragraph></tableCell>
+		<tableCell><paragraph></paragraph></tableCell>
+	</tableRow>
+</table>
+
+<paragraph></paragraph>
+<paragraph></paragraph>
+<paragraph></paragraph>
+<paragraph></paragraph>
+<paragraph></paragraph>
+<paragraph></paragraph>
+<paragraph></paragraph>
+
+<image src="blob:http://localhost:8125/6948ce58-ac20-4424-8356-f3c727f18ee6"></image>

+ 1 - 1
packages/ckeditor5-paste-from-office/tests/_data/image/adjacent-groups/normalized.safari.word2016.html

@@ -37,7 +37,7 @@
 
 <p class="MsoNormal" style="margin: 0cm 0cm 8pt; line-height: 15.693333625793457px; font-size: 11pt; font-family: Calibri, sans-serif; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">
 	<span lang="EN-US">
-		<img width="153" height="153" src="blob:http://localhost:8125/6948ce58-ac20-4424-8356-f3c727f18ee6" v:shapes="Obraz_x0020_12">
+		<img width="153" height="153" src="blob:http://localhost:8125/4fe9e7ab-3fec-4cce-98b8-7773476dbbf0" v:shapes="Obraz_x0020_12">
 	</span>
 	<span lang="EN-US"><o:p></o:p></span>
 </p>

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/alternative-text/input.safari.word2016.txt


+ 1 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/alternative-text/model.safari.word2016.html

@@ -0,0 +1 @@
+<image alt="Title: Hello world - Description: Macintosh HD:Users:dev:Desktop:phoca_thumb_l_sample-200x200.png" src="blob:http://localhost:8125/a47f813e-e187-4192-805b-597b7b785d07"></image>

+ 45 - 3
packages/ckeditor5-paste-from-office/tests/_data/image/index.js

@@ -67,7 +67,8 @@ const genericFixtures = {
 		adjacentGroups: adjacentGroupsModel,
 		onlineOffline: onlineOfflineModel,
 		shapesOnlineOffline: shapesOnlineOfflineModel
-	}
+	},
+	inputBlob: {}
 };
 
 export const fixtures = genericFixtures;
@@ -118,6 +119,16 @@ import adjacentGroupsSafari from './adjacent-groups/input.safari.word2016.html';
 import onlineOfflineSafari from './online-offline/input.safari.word2016.html';
 import shapesOnlineOfflineSafari from './shapes-online-offline/input.safari.word2016.html';
 
+import offlineSafariBlob from './offline/input.safari.word2016.txt';
+import linkedSafariBlob from './linked/input.safari.word2016.txt';
+import rotatedSafariBlob from './rotated/input.safari.word2016.txt';
+import wrappedSafariBlob from './wrapped/input.safari.word2016.txt';
+import alternativeTextSafariBlob from './alternative-text/input.safari.word2016.txt';
+import reflectionSafariBlob from './reflection/input.safari.word2016.txt';
+import adjacentGroupsSafariBlob from './adjacent-groups/input.safari.word2016.txt';
+import onlineOfflineSafariBlob from './online-offline/input.safari.word2016.txt';
+import shapesOnlineOfflineSafariBlob from './shapes-online-offline/input.safari.word2016.txt';
+
 import offlineNormalizedSafari from './offline/normalized.safari.word2016.html';
 import linkedNormalizedSafari from './linked/normalized.safari.word2016.html';
 import rotatedNormalizedSafari from './rotated/normalized.safari.word2016.html';
@@ -128,6 +139,16 @@ import adjacentGroupsNormalizedSafari from './adjacent-groups/normalized.safari.
 import onlineOfflineNormalizedSafari from './online-offline/normalized.safari.word2016.html';
 import shapesOnlineOfflineNormalizedSafari from './shapes-online-offline/normalized.safari.word2016.html';
 
+import offlineModelSafari from './offline/model.safari.word2016.html';
+import linkedModelSafari from './linked/model.safari.word2016.html';
+import rotatedModelSafari from './rotated/model.safari.word2016.html';
+import wrappedModelSafari from './wrapped/model.safari.word2016.html';
+import alternativeTextModelSafari from './alternative-text/model.safari.word2016.html';
+import reflectionModelSafari from './reflection/model.safari.word2016.html';
+import adjacentGroupsModelSafari from './adjacent-groups/model.safari.word2016.html';
+import onlineOfflineModelSafari from './online-offline/model.safari.word2016.html';
+import shapesOnlineOfflineModelSafari from './shapes-online-offline/model.safari.word2016.html';
+
 export const browserFixtures = {
 	chrome: {
 		input: Object.assign( {}, genericFixtures.input ),
@@ -204,7 +225,28 @@ export const browserFixtures = {
 			onlineOffline: onlineOfflineNormalizedSafari,
 			shapesOnlineOffline: shapesOnlineOfflineNormalizedSafari
 		},
-		model: {},
-		inputRtf: {}
+		model: {
+			offline: offlineModelSafari,
+			linked: linkedModelSafari,
+			rotated: rotatedModelSafari,
+			wrapped: wrappedModelSafari,
+			alternativeText: alternativeTextModelSafari,
+			reflection: reflectionModelSafari,
+			adjacentGroups: adjacentGroupsModelSafari,
+			onlineOffline: onlineOfflineModelSafari,
+			shapesOnlineOffline: shapesOnlineOfflineModelSafari
+		},
+		inputRtf: {},
+		inputBlob: {
+			offline: offlineSafariBlob,
+			linked: linkedSafariBlob,
+			rotated: rotatedSafariBlob,
+			wrapped: wrappedSafariBlob,
+			alternativeText: alternativeTextSafariBlob,
+			reflection: reflectionSafariBlob,
+			adjacentGroups: adjacentGroupsSafariBlob,
+			onlineOffline: onlineOfflineSafariBlob,
+			shapesOnlineOffline: shapesOnlineOfflineSafariBlob
+		}
 	}
 };

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/linked/input.safari.word2016.txt


+ 2 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/linked/model.safari.word2016.html

@@ -0,0 +1,2 @@
+<image src="blob:http://localhost:8125/b3944c30-1268-4dfb-8c7f-f19894f674c0"></image>
+<paragraph></paragraph>

+ 3 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/offline/input.safari.word2016.txt

@@ -0,0 +1,3 @@
+data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAAAXNSR0IArs4c6QAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAjFJREFUaEPt2r9KA0EQx/G967WwSmOjVr6FpRLwBWJeQ0vfwy7a2AhC1EawTi1YqZVIICAY7c85Dsy/3dudmd/d7UGuiaCZ/X52A8KSxAzGpt+5PLwyuOfo+dw67OLjG7eIOTMTik+pnoaePPSAo2sYldfT0++kO7dd+iGb1rAocokiOMuylF7IsPvU7V235hBOpxOzQfEZxeeA4mmLoaj/z54BWmFYql84gfjPYbXeAoj2HKz1dkCEBle9ExCVoaS+DBCJobzeA2jc4K33Axo0hNQHARoxBNaHAmo2hNczALUZWPU8QA0Gbj0bUKlBUC8BVGSQ1QsBcIO4Xg4AGjT1KgDEoKzXApQGfT0AIDZA6jEAgQFVDwOwDMB6JCDQgK2nRZPiYgv4vB0Mv/b3rAO3Xl7nb0Qgiy5cq0Am0v2Sc87cfQ5kLfBHCNXEmoM/Adby+j9eA/R7qJuwPgHd/unfvT6BlT2kf2TOff1J9Fu+NAF8AlR//7vtrHwcGbQBCfDUFyy0AQYIqq/AgAEw6tEGAIBdDzVoAcJ6nEEFUNWDD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24IAAAAAElFTkSuQmCC

+ 3 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/offline/model.safari.word2016.html

@@ -0,0 +1,3 @@
+<paragraph>This word contains some pictures:</paragraph>
+<image src="blob:http://localhost:8125/6eee155b-110e-4cc7-a624-06afab80827b"></image>
+<image src="blob:http://localhost:8125/0028aae7-a8e8-4018-bd92-5f384f2877f7"></image>

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/online-offline/input.safari.word2016.txt


+ 8 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/online-offline/model.safari.word2016.html

@@ -0,0 +1,8 @@
+<paragraph>Kitty from internet: </paragraph>
+<image alt="http://placekitten.com/200/305" src="blob:http://localhost:8125/3d548a2e-3bf9-4ce8-afce-535abb535964"></image>
+
+<paragraph>My drawing: </paragraph>
+<image src="blob:http://localhost:8125/bc7405cb-6456-46d5-b561-f2a70886abe3"></image>
+
+<paragraph> hehehehe :D </paragraph>
+<image src="blob:http://localhost:8125/50cbea9b-c8f0-48e5-9c69-1139aaab304f"></image>

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/reflection/input.safari.word2016.txt


+ 2 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/reflection/model.safari.word2016.html

@@ -0,0 +1,2 @@
+<image alt="Macintosh HD:Users:dev:Desktop:phoca_thumb_l_sample-200x200.png" src="blob:http://localhost:8125/3e7ab849-1542-4799-a08b-f5c55b5ce4b4"></image>
+

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/rotated/input.safari.word2016.txt


+ 1 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/rotated/model.safari.word2016.html

@@ -0,0 +1 @@
+<image alt="Macintosh HD:Users:dev:Desktop:phoca_thumb_l_sample-200x200.png" src="blob:http://localhost:8125/613ccc9a-a701-4025-823c-02000d80e57c"></image>

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/shapes-online-offline/input.safari.word2016.txt


+ 13 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/shapes-online-offline/model.safari.word2016.html

@@ -0,0 +1,13 @@
+<paragraph>Kitty from internet: </paragraph>
+<image alt="http://placekitten.com/200/305" src="blob:http://localhost:8125/13c7acc7-bf65-4d44-95e4-e7abef2f19bd"></image>
+
+<paragraph>My drawing: </paragraph>
+<image src="blob:http://localhost:8125/f4eae12c-af69-4208-9c41-70883f462710"></image>
+
+<paragraph> hehehehe :D </paragraph>
+<image src="blob:http://localhost:8125/658953f0-7e4d-49c3-ae39-7dfb47fe7577"></image>
+
+<image src="blob:http://localhost:8125/bf643552-117b-4b6c-a0d9-f4941411e38c"></image>
+<paragraph>Additional shape made within Word is added here:</paragraph>
+
+<paragraph></paragraph>

+ 1 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/wrapped/input.safari.word2016.txt

@@ -0,0 +1 @@
+data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAD7SURBVGhD7Y5BagNBEMT2N3lmnp5cdAgCG+Otag+hhY4zpb6WZVmWZVmW5R/x8/31SF6ciW59Ln8OQce9Lv8/i256Q4bm0R13ZHESXXBfdmdQOyXrbVTNSqOKknHJlFCsIaUGKvWkF0eZnvSyqNGWahAF2lINokBbqim0PiPtCJqekXYETc9IO4KmZ6QdQdMz0o6g6RlpR9D0jLQjaHpG2hE0PSPtFFpvSzWIAm2pBlGgLdUsavSkF0eZnvQaqNSQUgnFGlLqoV5WGm1UTcn6DGrfl91JdMEdWZxHd7wnWx9EB70u/w9Bxz2XP2eiW//Ki2VZlmVZljO4rl/CKbQ1HZeV+wAAAABJRU5ErkJggg==

+ 1 - 0
packages/ckeditor5-paste-from-office/tests/_data/image/wrapped/model.safari.word2016.html

@@ -0,0 +1 @@
+<image src="blob:http://localhost:8125/1e94edaf-a1cf-4d59-bf72-a54b2b7aca15"></image>

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff