blob: 3da941f4ce86e5390ce911a241be39555bb83cd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package com.vaadin.v7.tests.components.nativeselect;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import com.vaadin.testbench.elements.NativeSelectElement;
import com.vaadin.tests.tb3.SingleBrowserTest;
public class NativeSelectNullTest extends SingleBrowserTest {
@Test
public void selectNull() {
openTestURL();
NativeSelectElement select = $(NativeSelectElement.class).first();
select.selectByText("Item");
assertEquals("1. Value: Item", getLogRow(0));
select.selectByText("");
assertEquals("2. Value: null", getLogRow(0));
}
}
|