normalization.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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( 'Paste from Office - automatic', () => {
  13. generateTests( {
  14. input: 'basic-styles',
  15. type: 'normalization',
  16. dataSource: 'MS Word',
  17. browsers,
  18. editorConfig
  19. } );
  20. generateTests( {
  21. input: 'image',
  22. type: 'normalization',
  23. dataSource: 'MS Word',
  24. browsers,
  25. editorConfig
  26. } );
  27. generateTests( {
  28. input: 'link',
  29. type: 'normalization',
  30. dataSource: 'MS Word',
  31. browsers,
  32. editorConfig
  33. } );
  34. generateTests( {
  35. input: 'list',
  36. type: 'normalization',
  37. dataSource: 'MS Word',
  38. browsers,
  39. editorConfig
  40. } );
  41. generateTests( {
  42. input: 'spacing',
  43. type: 'normalization',
  44. dataSource: 'MS Word',
  45. browsers,
  46. editorConfig
  47. } );
  48. generateTests( {
  49. input: 'simpleText',
  50. type: 'normalization',
  51. dataSource: 'Google Docs',
  52. browsers,
  53. editorConfig
  54. } );
  55. } );