8
0

normalization.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /**
  2. * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
  6. import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
  7. import PasteFromOffice from '../../src/pastefromoffice';
  8. import { generateTests } from '../_utils/utils';
  9. const browsers = [ 'chrome', 'firefox', 'safari', 'edge' ];
  10. const editorConfig = {
  11. plugins: [ Clipboard, PasteFromOffice, Paragraph ]
  12. };
  13. describe( 'PasteFromOffice - normalization', () => {
  14. generateTests( {
  15. input: 'basic-styles',
  16. type: 'normalization',
  17. browsers,
  18. editorConfig
  19. } );
  20. generateTests( {
  21. input: 'image',
  22. type: 'normalization',
  23. browsers,
  24. editorConfig
  25. } );
  26. generateTests( {
  27. input: 'link',
  28. type: 'normalization',
  29. browsers,
  30. editorConfig
  31. } );
  32. generateTests( {
  33. input: 'list',
  34. type: 'normalization',
  35. browsers,
  36. editorConfig
  37. } );
  38. generateTests( {
  39. input: 'spacing',
  40. type: 'normalization',
  41. browsers,
  42. editorConfig
  43. } );
  44. generateTests( {
  45. input: 'google-docs-bold-wrapper',
  46. type: 'normalization',
  47. browsers,
  48. editorConfig
  49. } );
  50. generateTests( {
  51. input: 'generic-list-in-table',
  52. type: 'normalization',
  53. browsers,
  54. editorConfig
  55. } );
  56. } );