diff options
author | Artur <artur@vaadin.com> | 2017-05-17 13:06:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-17 13:06:47 +0300 |
commit | 57d0b2fd4c87e3dfc64e33fc8a43e78c8394f31e (patch) | |
tree | bf4841347a7dca717d2024609955b64d904f6be3 /uitest/src/test | |
parent | 04700baf219daab66b04a05e07354d1809ebfb0f (diff) | |
download | vaadin-framework-57d0b2fd4c87e3dfc64e33fc8a43e78c8394f31e.tar.gz vaadin-framework-57d0b2fd4c87e3dfc64e33fc8a43e78c8394f31e.zip |
Clean connector tracker after each access block to stop memory leaks (#9331)
Immediately clean connectors which the client side does not know about
Fixes #9303
Diffstat (limited to 'uitest/src/test')
-rw-r--r-- | uitest/src/test/java/com/vaadin/tests/application/MissingHierarchyDetectionTest.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/uitest/src/test/java/com/vaadin/tests/application/MissingHierarchyDetectionTest.java b/uitest/src/test/java/com/vaadin/tests/application/MissingHierarchyDetectionTest.java index ad44fe6f89..c047c9a12b 100644 --- a/uitest/src/test/java/com/vaadin/tests/application/MissingHierarchyDetectionTest.java +++ b/uitest/src/test/java/com/vaadin/tests/application/MissingHierarchyDetectionTest.java @@ -41,10 +41,14 @@ public class MissingHierarchyDetectionTest extends SingleBrowserTest { assertNoSystemNotifications(); Assert.assertTrue(isElementPresent(LabelElement.class)); - ButtonElement toggleInproperly = $(ButtonElement.class) + ButtonElement toggleImproperly = $(ButtonElement.class) .caption("Toggle improperly").first(); - toggleInproperly.click(); + toggleImproperly.click(); - assertSystemNotification(); + $(ButtonElement.class).caption("Check for errors").first().click(); + Assert.assertTrue( + "No error was logged for the missing hierarchy change event", + getLogRow(0).contains( + "is no longer visible to the client, but no corresponding hierarchy change was sent.")); } } |