]> source.dussan.org Git - vaadin-framework.git/commitdiff
Merge from 6.7
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Fri, 20 Jan 2012 10:30:03 +0000 (10:30 +0000)
committerJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Fri, 20 Jan 2012 10:30:03 +0000 (10:30 +0000)
svn changeset:22729/svn branch:6.8

src/com/vaadin/terminal/gwt/client/VDebugConsole.java
src/com/vaadin/terminal/gwt/client/ui/VFormLayout.java
src/com/vaadin/terminal/gwt/client/ui/VTextualDate.java
tests/integration_base_files/cleanup.sh
tests/integration_base_files/lock_age.sh
tests/integration_tests.xml
tests/test.xml
tests/testbench/com/vaadin/tests/components/combobox/ComboBoxIdenticalItems.html
tests/testbench/com/vaadin/tests/components/orderedlayout/OrderedLayoutCases.java

index e180c05aaa5e02f4e9365d9206c87f2d9f316bb6..c43581b0002aa77d9be570c336c9343b02673773 100644 (file)
@@ -730,8 +730,10 @@ public class VDebugConsole extends VOverlay implements Console {
 
             forceLayout.addClickHandler(new ClickHandler() {
                 public void onClick(ClickEvent event) {
-                    // TODO for each client in appconf force layout
-                    // VDebugConsole.this.client.forceLayout();
+                    for (ApplicationConnection applicationConnection : ApplicationConfiguration
+                            .getRunningApplications()) {
+                        applicationConnection.forceLayout();
+                    }
                 }
             });
 
index d31d1acdd6f5c3b8513ff62f09b920973377061c..174e66b7aaba0abf988e541989eebd967f818a85 100644 (file)
@@ -327,13 +327,21 @@ public class VFormLayout extends SimplePanel implements Container {
         }
 
         private void setStyles(String[] styles) {
-            String style = CLASSNAME;
+            String styleName = CLASSNAME;
+
             if (styles != null) {
-                for (int i = 0; i < styles.length; i++) {
-                    style += " " + CLASSNAME + "-" + styles[i];
+                for (String style : styles) {
+                    if (ApplicationConnection.DISABLED_CLASSNAME.equals(style)) {
+                        // Add v-disabled also without classname prefix so
+                        // generic v-disabled CSS rules work
+                        styleName += " " + style;
+                    }
+
+                    styleName += " " + CLASSNAME + "-" + style;
                 }
             }
-            setStyleName(style);
+
+            setStyleName(styleName);
         }
 
         public void updateCaption(UIDL uidl) {
index fb41829efc04e046babbc9ed36887db79bf70152..56cdf05ddb0b0c6dd1e676602ab9d1c007d134b5 100644 (file)
@@ -340,7 +340,7 @@ public class VTextualDate extends VDateField implements Paintable, Field,
 
     @Override
     public void setWidth(String newWidth) {
-        if (!"".equals(newWidth) && (width == null || !newWidth.equals(width))) {
+        if (!"".equals(newWidth) && (isUndefinedWidth() || !newWidth.equals(width))) {
             if (BrowserInfo.get().isIE6()) {
                 // in IE6 cols ~ min-width
                 DOM.setElementProperty(text.getElement(), "size", "1");
@@ -353,19 +353,21 @@ public class VTextualDate extends VDateField implements Paintable, Field,
                 needLayout = false;
             }
         } else {
-            if ("".equals(newWidth) && width != null && !"".equals(width)) {
+            if ("".equals(newWidth) && !isUndefinedWidth()) {
+                // Changing from defined to undefined
                 if (BrowserInfo.get().isIE6()) {
                     // revert IE6 hack
                     DOM.setElementProperty(text.getElement(), "size", "");
                 }
                 super.setWidth("");
-                needLayout = true;
-                iLayout();
-                needLayout = false;
+                iLayout(true);
                 width = null;
             }
         }
     }
+    protected boolean isUndefinedWidth() {
+       return width == null || "".equals(width);
+    }
 
     /**
      * Returns pixels in x-axis reserved for other than textfield content.
@@ -390,16 +392,20 @@ public class VTextualDate extends VDateField implements Paintable, Field,
      * automatically adjusted by the browser.
      */
     public void updateWidth() {
-        if (!needLayout) {
+        if (isUndefinedWidth()) {
             return;
         }
-
+        needLayout = true;
         fieldExtraWidth = -1;
-        iLayout();
+        iLayout(true);
     }
 
     public void iLayout() {
-        if (needLayout) {
+        iLayout(false);
+    }
+
+    public void iLayout(boolean force) {
+        if (needLayout || force) {
             int textFieldWidth = getOffsetWidth() - getFieldExtraWidth();
             if (textFieldWidth < 0) {
                 // Field can never be smaller than 0 (causes exception in IE)
index 42fb5a434d5ca0133a1d9de8d97e35369cdfa210..44e2e5f6eed225de39c5c0d730f7b0771d210ab4 100644 (file)
@@ -23,4 +23,5 @@ if [ -a /home/integration/demo.war ]
 fi
      
 echo Cleaning deploy dir
-rm -rf /home/integration/deploy/*
+ant -f /home/integration/deploy.xml clean
+
index 6b78acb590b1f75d6afa21dd21dba99a443576f2..115a8fef79aef906af1ed370bd2f81a04aefce34 100644 (file)
@@ -8,7 +8,7 @@ if lockfile -r0 -! /home/integration/deploy/lock.file &> /dev/null
 
   AGE=$[($DATE - $LOCK_AGE)/60]
 
-  if [ "$AGE" -gt "15" ]
+  if [ "$AGE" -gt "20" ]
     then
      echo lock.file is $AGE min old.
      ./cleanup.sh
index 59840978806ec7eaee2e21344d053f746b34a3b0..57d6bb47a9e244ddf336e8ddd388c170532ca277 100644 (file)
                </antcall>\r
        </target>\r
        \r
+       <target name="integration-test-weblogic12">\r
+               <antcall target="run-generic-integration-test">\r
+                       <param name="target-port" value="7001" />\r
+                       <param name="target-server" value="weblogic12" />\r
+               </antcall>\r
+       </target>\r
+       \r
        \r
        <target name="integration-test-weblogicPortal">\r
                <fileset dir="integration-testscripts" id="html-test-files" includes="weblogic-portal/integration-test-WebLogic-Portal-10.3.2-portlet2.html" />\r
                        <antcall target="integration-test-liferay5" />\r
                        <antcall target="integration-test-weblogic9" />\r
                        <antcall target="integration-test-weblogic10" />\r
+                       <!--<antcall target="integration-test-weblogic12" />-->\r
                        <antcall target="integration-test-gatein3" />\r
                        <antcall target="integration-test-glassfish2" />\r
                        <antcall target="integration-test-glassfish3" />\r
index f09c115fec12af8a74b7fdaa5f56411a308b190e..39d45d2a74e7504d52a5f8f0c610f1dd94e69009 100644 (file)
                </fileset>
 
 
-               <for threadCount="40" parallel="true" keepgoing="true" param="target">
+               <for threadCount="30" parallel="true" keepgoing="true" param="target">
                        <path>
                                <fileset refid="tests-fileset" />
                        </path>
index 6d18c6003896a2a84f00fe4a064b66a390447ff6..3ad7d62a096a6517d84c46c5e4769ad0be6d1617 100644 (file)
        <td>vaadin=runcomvaadintestscomponentscomboboxComboBoxIdenticalItems::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VFilterSelect[0]/domChild[0]</td>
        <td>enter</td>
 </tr>
+<tr>
+       <td>pause</td>
+       <td>100</td>
+       <td></td>
+</tr>
 <tr>
        <td>assertText</td>
        <td>vaadin=runcomvaadintestscomponentscomboboxComboBoxIdenticalItems::PID_SLog_row_0</td>
        <td>4. Item one-1 selected</td>
 </tr>
-
 </tbody></table>
 </body>
 </html>
index dae44e3299178155fa4e6f45f6e7eb08efdafaea..ff3c304600948c43ac66c9c7a063500f5bec5af1 100644 (file)
@@ -266,6 +266,8 @@ public class OrderedLayoutCases extends TestBase {
                         setChildState(0, 1, 2);
                         // Height: 100% to middle child
                         setChildState(1, 1, 4);
+                        // Alignment: bottom left to right child
+                        setChildState(2, 4, 7);
                     }
                 }));
 
@@ -277,6 +279,8 @@ public class OrderedLayoutCases extends TestBase {
                         setChildState(0, 1, 2);
                         // Height: 100% to middle child
                         setChildState(1, 1, 4);
+                        // Alignment: bottom left to right child
+                        setChildState(2, 4, 7);
                     }
                 }));