integration.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /**
  2. * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
  6. import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
  7. import ShiftEnter from '@ckeditor/ckeditor5-enter/src/shiftenter';
  8. import Heading from '@ckeditor/ckeditor5-heading/src/heading';
  9. import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
  10. import Underline from '@ckeditor/ckeditor5-basic-styles/src/underline';
  11. import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
  12. import Link from '@ckeditor/ckeditor5-link/src/link';
  13. import Strikethrough from '@ckeditor/ckeditor5-basic-styles/src/strikethrough';
  14. import List from '@ckeditor/ckeditor5-list/src/list';
  15. import Image from '@ckeditor/ckeditor5-image/src/image';
  16. import Table from '@ckeditor/ckeditor5-table/src/table';
  17. import PasteFromOffice from '../../src/pastefromoffice';
  18. import { generateTests } from '../_utils/utils';
  19. const browsers = [ 'chrome', 'firefox', 'safari', 'edge' ];
  20. generateTests( {
  21. input: 'basic-styles',
  22. type: 'integration',
  23. browsers,
  24. editorConfig: {
  25. plugins: [ Clipboard, Paragraph, Heading, Bold, Italic, Underline, Strikethrough, PasteFromOffice ]
  26. },
  27. skip: {
  28. safari: [ 'italicStartingText', 'multipleStylesSingleLine', 'multipleStylesMultiline' ] // Skip due to spacing issue (#13).
  29. }
  30. } );
  31. generateTests( {
  32. input: 'image',
  33. type: 'integration',
  34. browsers: [ 'chrome', 'firefox', 'edge' ],
  35. editorConfig: {
  36. plugins: [ Clipboard, Paragraph, Image, Table, PasteFromOffice ]
  37. }
  38. } );
  39. generateTests( {
  40. input: 'image',
  41. type: 'integration',
  42. browsers: [ 'safari' ],
  43. editorConfig: {
  44. plugins: [ Clipboard, Paragraph, Image, Table, PasteFromOffice ]
  45. },
  46. withBlobsHandling: true
  47. } );
  48. generateTests( {
  49. input: 'link',
  50. type: 'integration',
  51. browsers,
  52. editorConfig: {
  53. plugins: [ Clipboard, Paragraph, Heading, Bold, Link, ShiftEnter, PasteFromOffice ]
  54. },
  55. skip: {
  56. safari: [ 'combined' ] // Skip due to spacing issue (#13).
  57. }
  58. } );
  59. generateTests( {
  60. input: 'list',
  61. type: 'integration',
  62. browsers,
  63. editorConfig: {
  64. plugins: [ Clipboard, Paragraph, Heading, Bold, Italic, Underline, Link, List, PasteFromOffice ]
  65. },
  66. skip: {
  67. safari: [ 'heading3Styled' ] // Skip due to spacing issue (#13).
  68. }
  69. } );
  70. generateTests( {
  71. input: 'spacing',
  72. type: 'integration',
  73. browsers,
  74. editorConfig: {
  75. plugins: [ Clipboard, Paragraph, Bold, Italic, Underline, PasteFromOffice ]
  76. }
  77. } );