normalization.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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: 'google-docs-list',
  51. type: 'normalization',
  52. browsers,
  53. editorConfig
  54. } );
  55. generateTests( {
  56. input: 'generic-list-in-table',
  57. type: 'normalization',
  58. browsers,
  59. editorConfig
  60. } );
  61. } );