module("tinymce.html.Serializer"); test('Basic serialization', function() { var serializer = new tinymce.html.Serializer(); expect(6); equal(serializer.serialize(new tinymce.html.DomParser().parse('texttext')), 'text'); equal(serializer.serialize(new tinymce.html.DomParser().parse('')), ''); equal(serializer.serialize(new tinymce.html.DomParser().parse('')), ''); equal(serializer.serialize(new tinymce.html.DomParser().parse('')), ''); equal(serializer.serialize(new tinymce.html.DomParser().parse('')), ''); }); test('Sorting of attributes', function() { var serializer = new tinymce.html.Serializer(); expect(1); equal(serializer.serialize(new tinymce.html.DomParser().parse('x')), 'x'); });