normalization.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. * @license Copyright (c) 2003-2019, 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 PasteFromOffice from '../../src/pastefromoffice';
  7. import { generateTests } from '../_utils/utils';
  8. const browsers = [ 'chrome', 'firefox', 'safari', 'edge' ];
  9. const editorConfig = {
  10. plugins: [ Clipboard, PasteFromOffice ]
  11. };
  12. describe( 'PasteFromOffice - normalization', () => {
  13. generateTests( {
  14. input: 'basic-styles',
  15. type: 'normalization',
  16. browsers,
  17. editorConfig
  18. } );
  19. generateTests( {
  20. input: 'image',
  21. type: 'normalization',
  22. browsers,
  23. editorConfig
  24. } );
  25. generateTests( {
  26. input: 'link',
  27. type: 'normalization',
  28. browsers,
  29. editorConfig
  30. } );
  31. generateTests( {
  32. input: 'list',
  33. type: 'normalization',
  34. browsers,
  35. editorConfig
  36. } );
  37. generateTests( {
  38. input: 'spacing',
  39. type: 'normalization',
  40. browsers,
  41. editorConfig
  42. } );
  43. generateTests( {
  44. input: 'google-docs-bold-wrapper',
  45. type: 'normalization',
  46. browsers,
  47. editorConfig
  48. } );
  49. generateTests( {
  50. input: 'generic-list-in-table',
  51. type: 'normalization',
  52. browsers,
  53. editorConfig
  54. } );
  55. } );