diff options
author | Pekka Hyvönen <pekka@vaadin.com> | 2016-10-07 16:06:01 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2016-10-13 06:41:15 +0000 |
commit | fb4248119d77a6865a42ffdf0d80f10d683769a5 (patch) | |
tree | 60692a31b04a85958fefb6959e06e7039a3ea879 /compatibility-server/src/test/java/com/vaadin/v7/ui/AbstractLegacyComponentTest.java | |
parent | b66631c3dc5d79caa6a78274d2ea4107ccae7973 (diff) | |
download | vaadin-framework-fb4248119d77a6865a42ffdf0d80f10d683769a5.tar.gz vaadin-framework-fb4248119d77a6865a42ffdf0d80f10d683769a5.zip |
Remove AbstractComponent.immediate
All components are now in immediate mode by default.
V7 compatibility components will use AbstractLegacyComponent that has immediate.
V7 ColorPickerPopup will not have setImmediate, since it extends V8 Window,
which is not in V7 compatibility packages.
Removed OutOfSync and ResynchronizeAfterAsyncRemoval Tests,
since those tested UI in not immediate mode, which is invalid now.
Removed WindowResizeListener, LazyWindowResize, test UIs,
since both used immediate and there were no test run for either.
Change-Id: Ie1c8cfa4c48461db944ff9b13efe8473c5a3298f
Diffstat (limited to 'compatibility-server/src/test/java/com/vaadin/v7/ui/AbstractLegacyComponentTest.java')
-rw-r--r-- | compatibility-server/src/test/java/com/vaadin/v7/ui/AbstractLegacyComponentTest.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/compatibility-server/src/test/java/com/vaadin/v7/ui/AbstractLegacyComponentTest.java b/compatibility-server/src/test/java/com/vaadin/v7/ui/AbstractLegacyComponentTest.java new file mode 100644 index 0000000000..1a683ad373 --- /dev/null +++ b/compatibility-server/src/test/java/com/vaadin/v7/ui/AbstractLegacyComponentTest.java @@ -0,0 +1,21 @@ +package com.vaadin.v7.ui; + +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; + +import org.junit.Test; + +public class AbstractLegacyComponentTest { + AbstractLegacyComponent component = new AbstractLegacyComponent() { + }; + + @Test + public void testImmediate() { + assertTrue("Component should be immediate by default", + component.isImmediate()); + component.setImmediate(false); + assertFalse( + "Explicitly non-immediate component should not be immediate", + component.isImmediate()); + } +} |