module( 've.ce' ); /* Tests */ test( 'whitespacePattern', 4, function() { equal( 'a b'.match( ve.ce.whitespacePattern ), ' ', 'matches spaces' ); equal( 'a\u00A0b'.match( ve.ce.whitespacePattern ), '\u00A0', 'matches non-breaking spaces' ); equal( 'a\tb'.match( ve.ce.whitespacePattern ), null, 'does not match tab' ); equal( 'ab'.match( ve.ce.whitespacePattern ), null, 'does not match non-whitespace' ); } ); test( 'getDOMText', 1, function() { equal( ve.ce.getDomText( $( 'abcd' )[0] ), 'abcd' ); } ); test( 'getDOMHash', 1, function() { equal( ve.ce.getDomHash( $( 'abcd' )[0] ), '####' ); } );