8
0

integration.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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,
  35. editorConfig: {
  36. plugins: [ Clipboard, Paragraph, Image, Table, PasteFromOffice ]
  37. }
  38. } );
  39. generateTests( {
  40. input: 'link',
  41. type: 'integration',
  42. browsers,
  43. editorConfig: {
  44. plugins: [ Clipboard, Paragraph, Heading, Bold, Link, ShiftEnter, PasteFromOffice ]
  45. },
  46. skip: {
  47. safari: [ 'combined' ] // Skip due to spacing issue (#13).
  48. }
  49. } );
  50. generateTests( {
  51. input: 'list',
  52. type: 'integration',
  53. browsers,
  54. editorConfig: {
  55. plugins: [ Clipboard, Paragraph, Heading, Bold, Italic, Underline, Link, List, PasteFromOffice ]
  56. },
  57. skip: {
  58. safari: [ 'heading3Styled' ] // Skip due to spacing issue (#13).
  59. }
  60. } );
  61. generateTests( {
  62. input: 'spacing',
  63. type: 'integration',
  64. browsers,
  65. editorConfig: {
  66. plugins: [ Clipboard, Paragraph, Bold, Italic, Underline, PasteFromOffice ]
  67. }
  68. } );