Search in sources :

Example 26 with TableCellElement

use of com.google.gwt.dom.client.TableCellElement in project gwt-test-utils by gwt-test-utils.

the class TableRowElementTest method deleteCell.

@Test
public void deleteCell() {
    // Given
    TableCellElement td0 = Document.get().createTDElement();
    tr.appendChild(td0);
    TableCellElement td1 = Document.get().createTDElement();
    tr.appendChild(td1);
    // When
    tr.deleteCell(0);
    // Then
    assertThat(tr.getChildCount()).isEqualTo(1);
    assertThat(tr.getChild(0)).isEqualTo(td1);
}
Also used : TableCellElement(com.google.gwt.dom.client.TableCellElement) GwtTestTest(com.googlecode.gwt.test.GwtTestTest) Test(org.junit.Test)

Aggregations

TableCellElement (com.google.gwt.dom.client.TableCellElement)26 TableRowElement (com.google.gwt.dom.client.TableRowElement)16 Coordinate (org.kie.workbench.common.widgets.decoratedgrid.client.widget.data.Coordinate)8 DivElement (com.google.gwt.dom.client.DivElement)4 Element (com.google.gwt.dom.client.Element)4 TableSectionElement (com.google.gwt.dom.client.TableSectionElement)4 DynamicDataRow (org.kie.workbench.common.widgets.decoratedgrid.client.widget.data.DynamicDataRow)3 Context (com.google.gwt.cell.client.Cell.Context)2 EventTarget (com.google.gwt.dom.client.EventTarget)2 SafeHtmlBuilder (com.google.gwt.safehtml.shared.SafeHtmlBuilder)2 GwtTestTest (com.googlecode.gwt.test.GwtTestTest)2 Test (org.junit.Test)2 GWT (com.google.gwt.core.client.GWT)1 NativeEvent (com.google.gwt.dom.client.NativeEvent)1 SpanElement (com.google.gwt.dom.client.SpanElement)1 TableElement (com.google.gwt.dom.client.TableElement)1 Request (com.google.gwt.http.client.Request)1 RequestCallback (com.google.gwt.http.client.RequestCallback)1 Response (com.google.gwt.http.client.Response)1 DateTimeFormat (com.google.gwt.i18n.client.DateTimeFormat)1