Changeset 582


Ignore:
Timestamp:
03/10/09 13:35:20 (3 years ago)
Author:
mr_lundis
Message:

Added unit test for #133 (thanks to Wes Winham), closes #153.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/test/unit/index.html

    r540 r582  
    1616 * File Authors: 
    1717 *        Jean-Francois Hovinne (jf.hovinne a-t wymeditor dotorg) 
     18 *        Wes Winham 
    1819--> 
    1920<html> 
     
    8485}); 
    8586 
     87test("Shouldn't remove empty td elements", function() { 
     88    expect(1); 
     89    var expected = '<table><tr><td>Cell1</td><td></td></tr></table>'; 
     90    var empty_cell = '<table><tr><td>Cell1</td><td></td></tr></table>'; 
     91    equals( jQuery.wymeditors(0).parser.parse(empty_cell), expected); 
     92}); 
     93 
    8694function runPostInitTests() { 
    8795    module("Post Init"); 
     
    97105        jQuery.wymeditors(0).paste( testText2 ); 
    98106        equals( jQuery.trim( jQuery.wymeditors(0).xhtml() ), testText1 + '<p>' + testText2 + '<\/p>' ); 
    99          
     107 
    100108    }); 
    101109}; 
Note: See TracChangeset for help on using the changeset viewer.