normalization.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. } );