assertEquals(treeItem.getFont(), treeItem.getFont(10));
assertTrue(compareFonts(treeItem.getFont(), treeItem.getFont(10)));
public void test_setFontILorg_eclipse_swt_graphics_Font() {	Display display = treeItem.getDisplay();	Font font = new Font(display, SwtJunit.testFontName, 10, SWT.NORMAL);		// no columns	assertEquals(tree.getFont(), treeItem.getFont(0));	assertEquals(treeItem.getFont(), treeItem.getFont(0));	treeItem.setFont(0, font);	assertEquals(font, treeItem.getFont(0));		// index beyond range - no error	treeItem.setFont(10, font);	assertEquals(treeItem.getFont(), treeItem.getFont(10));		// with columns	TreeColumn column1 = new TreeColumn(tree, SWT.LEFT);	TreeColumn column2 = new TreeColumn(tree, SWT.LEFT);		// index beyond range - no error	treeItem.setFont(10, font);	assertEquals(treeItem.getFont(), treeItem.getFont(10));		treeItem.setFont(0, font);	assertEquals(font, treeItem.getFont(0));	treeItem.setFont(0, null);	assertEquals(tree.getFont(), treeItem.getFont(0));		Font font2 = new Font(display, SwtJunit.testFontName, 20, SWT.NORMAL);		treeItem.setFont(0, font);	treeItem.setFont(font2);	assertEquals(font, treeItem.getFont(0));		treeItem.setFont(0, null);	assertEquals(font2, treeItem.getFont(0));		treeItem.setFont(null);	assertEquals(tree.getFont(),treeItem.getFont(0));		font.dispose();	font2.dispose();		try {		treeItem.setFont(0, font);		treeItem.setFont(0, null);		fail("No exception thrown for disposed font");	} catch (IllegalArgumentException e) {	}}