Unit tests for the Paste plugin

Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

  1. Paste plugin: Paste simple text content (0, 1, 1)
    1. undefined, expected: "<p>1TEST4</p>"
  2. Paste plugin: Paste styled text content (0, 1, 1)
    1. undefined, expected: "<p>1<strong><em><span style=\\"color: red;\\">TEST</span></em></strong>4</p>"
  3. Paste plugin: Paste paragraph in paragraph (0, 1, 1)
    1. undefined, expected: "<p>1</p><p>TEST</p><p>4</p>"
  4. Paste plugin: Paste paragraphs in complex paragraph (0, 1, 1)
    1. undefined, expected: "<p><strong><em>1</em></strong></p><p>TEST 1</p><p>TEST 2</p><p><strong><em>4</em></strong></p>"
  5. Paste plugin: Paste Word fake list (0, 1, 1)
    1. undefined, expected: "<ul><li>Item 1</li><li>Item 2</li><li>Item 3</li><li>Item 4</li><li>Item 5</li><li>Item 6</li></ul>"
  6. Paste plugin: Paste Word table (0, 1, 1)
    1. undefined, expected: "<table border=\\"1\\" cellspacing=\\"0\\" cellpadding=\\"0\\"><tbody><tr><td width=\\"307\\" valign=\\"top\\"><p>Cell 1</p></td><td width=\\"307\\" valign=\\"top\\"><p>Cell 2</p></td></tr><tr><td width=\\"307\\" valign=\\"top\\"><p>Cell 3</p></td><td width=\\"307\\" valign=\\"top\\"><p>Cell 4</p></td></tr></tbody></table><p>&nbsp;</p>"
  7. Paste plugin: Paste Word retain styles (2, 0, 2)
    1. undefined, expected: "<p style=\\"color: #ff0000;\\">Test</p>" result: "<p style=\\"color: #ff0000;\\">Test</p><p>&nbsp;</p>", diff: "<p style=\\"color: #ff0000;\\">Test</p>" #ff0000;\\">Test</p><p>&nbsp;</p>"
    2. undefined, expected: "<p style=\\"background-color: #ff0000;\\">Test</p>" result: "<p style=\\"background-color: #ff0000;\\">Test</p><p>&nbsp;</p>", diff: "<p style=\\"background-color: #ff0000;\\">Test</p>" #ff0000;\\">Test</p><p>&nbsp;</p>"

Tests completed in 99 milliseconds.
6 tests of 8 passed, 2 failed.

Styles
Paragraph
[getRawContents] [getContents]