diff options
author | Artur Signell <artur@vaadin.com> | 2016-10-22 19:45:40 +0300 |
---|---|---|
committer | Pekka Hyvönen <pekka@vaadin.com> | 2016-12-09 09:39:00 +0200 |
commit | 26dac6ff92b38ffec2491c7e1d12585ca20dfa10 (patch) | |
tree | 895e53cf0596d6d14dd3a1f362ad20742560940f /uitest | |
parent | 7b957a5c378532b11ebfb66156c3a46898f9231b (diff) | |
download | vaadin-framework-26dac6ff92b38ffec2491c7e1d12585ca20dfa10.tar.gz vaadin-framework-26dac6ff92b38ffec2491c7e1d12585ca20dfa10.zip |
Publish Escalator.getBodyRowCount to JS (#20344)
This is needed to be able to get the information from e.g. TestBench
Change-Id: I95ec6064f602e6a8b24e35cc59d467e9c8b31c1e
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/test/java/com/vaadin/v7/tests/components/grid/basicfeatures/server/GridStructureTest.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/uitest/src/test/java/com/vaadin/v7/tests/components/grid/basicfeatures/server/GridStructureTest.java b/uitest/src/test/java/com/vaadin/v7/tests/components/grid/basicfeatures/server/GridStructureTest.java index aa38f61083..da06dde016 100644 --- a/uitest/src/test/java/com/vaadin/v7/tests/components/grid/basicfeatures/server/GridStructureTest.java +++ b/uitest/src/test/java/com/vaadin/v7/tests/components/grid/basicfeatures/server/GridStructureTest.java @@ -514,4 +514,18 @@ public class GridStructureTest extends GridBasicFeaturesTest { selectMenuPath("Component", "Body rows", "Add third row"); assertFalse(logContainsText("Exception occured")); } + + @Test + public void getBodyRowCountJS() { + openTestURL(); + GridElement grid = $(GridElement.class).first(); + assertEquals(1000L, + executeScript("return arguments[0].getBodyRowCount()", grid)); + selectMenuPath("Component", "Body rows", "Remove all rows"); + assertEquals(0L, + executeScript("return arguments[0].getBodyRowCount()", grid)); + selectMenuPath("Component", "Body rows", "Add first row"); + assertEquals(1L, + executeScript("return arguments[0].getBodyRowCount()", grid)); + } } |