package jp.co.kpscorp.gwt.generator;

import jp.co.kpscorp.gwt.client.design.DesignPanel;
import jp.co.kpscorp.gwt.client.design.PanelWithTree;
import jp.co.kpscorp.gwt.client.design.WidgetServiceFactory;
import jp.co.kpscorp.gwt.client.design.WidgetServiceWrapper;
import jp.co.kpscorp.gwt.client.design.gxt.service.comp.WsAccordionLayoutPanel;

import com.extjs.gxt.ui.client.widget.form.FormPanel;
import com.google.gwt.junit.client.GWTTestCase;

//public class GWTTest {
public class GWTTest extends GWTTestCase {

	public String getModuleName() {
		return "jp.co.kpscorp.gwt.DesignGx2";
	}

	public void testAdd() {
		DesignPanel dp = DesignPanel.getInstance();
		new PanelWithTree();
//		dp.comp = dp.getBasePanel();
//		dp.service = WidgetServiceFactory.getService(dp.getBasePanel());
//		dp.add(WidgetServiceFactory.getService(new FormPanel()));
//		dp
//				.add(new WidgetServiceWrapper(new WsAccordionLayoutPanel(null),
//						null));
//		dp.add(WidgetServiceFactory.getService(new FormPanel()));
//		dp
//				.add(new WidgetServiceWrapper(new WsAccordionLayoutPanel(null),
//						null));
//		dp.doRemove(dp.getBasePanel().getItem(0), true);
//		dp.doRemove(dp.getBasePanel().getItem(0), true);
//		dp.doRemove(dp.getBasePanel().getItem(0), true);
//		dp.doRemove(dp.getBasePanel().getItem(0), true);
	}

}
