]> source.dussan.org Git - vaadin-framework.git/commitdiff
Send window mode changes to the server immediately (#11737)
authorLeif Åstrand <leif@vaadin.com>
Wed, 22 May 2013 10:59:44 +0000 (13:59 +0300)
committerVaadin Code Review <review@vaadin.com>
Tue, 28 May 2013 08:40:46 +0000 (08:40 +0000)
Change-Id: Icfaa8f97824d8ed92eaee786cee8c92083dc1084

shared/src/com/vaadin/shared/ui/window/WindowServerRpc.java
uitest/src/com/vaadin/tests/components/window/WindowMaximizeRestoreTest.html

index cfb10ad86ae8799593d5f429dd669463d5deae53..b43765274eeb44dc6abbbb5c10a547c35b75f661 100644 (file)
  */
 package com.vaadin.shared.ui.window;
 
-import com.vaadin.shared.annotations.Delayed;
 import com.vaadin.shared.communication.ServerRpc;
 import com.vaadin.shared.ui.ClickRpc;
 
 public interface WindowServerRpc extends ClickRpc, ServerRpc {
 
-    @Delayed(lastOnly = true)
     public void windowModeChanged(WindowMode newState);
 
 }
\ No newline at end of file
index 945564f2986e72b4bf774ece360b9de6abe2ad06..dcdfa05687b43348ac5e75ddc469b7b62cd14e1a 100644 (file)
        <td>vaadin=runcomvaadintestscomponentswindowWindowMaximizeRestoreTest::/VWindow[0]/FocusableScrollPanel[0]/VVerticalLayout[0]/Slot[0]/VNativeButton[0]</td>
        <td>43,12</td>
 </tr>
-<!--Remove the following two commands once #11737 is fixed-->
-<tr>
-       <td>mouseClick</td>
-       <td>vaadin=runcomvaadintestscomponentswindowWindowMaximizeRestoreTest::/VWindow[0]/FocusableScrollPanel[0]/VVerticalLayout[0]/Slot[0]/VNativeButton[0]</td>
-       <td>43,12</td>
-</tr>
-<tr>
-       <td>mouseClick</td>
-       <td>vaadin=runcomvaadintestscomponentswindowWindowMaximizeRestoreTest::/VWindow[0]/FocusableScrollPanel[0]/VVerticalLayout[0]/Slot[0]/VNativeButton[0]</td>
-       <td>43,12</td>
-</tr>
 <!--maximize window 2 content-->
 <tr>
        <td>mouseClick</td>
        <td></td>
        <td>window-1-maximized-with-doubleclick</td>
 </tr>
+<!--Test that size and position is preserved when maximizing and restoring-->
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentswindowWindowMaximizeRestoreTest::/VWindow[0]/domChild[0]/domChild[0]/domChild[1]</td>
+       <td>8,4</td>
+</tr>
+<tr>
+       <td>dragAndDrop</td>
+       <td>vaadin=runcomvaadintestscomponentswindowWindowMaximizeRestoreTest::/VWindow[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
+       <td>-200,-200</td>
+</tr>
+<tr>
+       <td>dragAndDrop</td>
+       <td>vaadin=runcomvaadintestscomponentswindowWindowMaximizeRestoreTest::/VWindow[0]/domChild[0]/domChild[0]/domChild[4]/domChild[0]</td>
+       <td>+100,+100</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentswindowWindowMaximizeRestoreTest::/VWindow[0]/domChild[0]/domChild[0]/domChild[1]</td>
+       <td>6,5</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentswindowWindowMaximizeRestoreTest::/VWindow[0]/domChild[0]/domChild[0]/domChild[1]</td>
+       <td>5,8</td>
+</tr>
+<tr>
+       <td>screenCapture</td>
+       <td></td>
+       <td>window-1-moved-maximized-restored</td>
+</tr>
 </tbody></table>
 </body>
 </html>