var f = new textformat();
assertNotNull(f);
assertNull(f.font);
var f = new textformat(this, {bold:true});
assertTrue(f.bold);
var f = new textformat(this, {bold:true, font:"Verdana"});
assertTrue(f.bold);
assertSame("Verdana", f.font);
assertNull(f.url);
var f = new textformat(this, {color:0x0000FF});
assertSame(0x0000FF, f.color);
this.addTest("testCreation");
this.addTest("testCreationWithArg");
this.addTest("testCreationWithArgs");
this.addTest("testCreationWithColor");
var fmt = new textformat(this);
var html = fmt.toHTML();
assertNotNull(html);
var fmt = new textformat(this, {font: "Verdana"});
var html = fmt.toHTML();
Debug.write("FormatToHTML.testFont got " + html);
assertTrue(html.length >= 9);
this.addTest("testSimple");
this.addTest("testFont");