]> source.dussan.org Git - vaadin-framework.git/commitdiff
Removed extra large NativeButton for IE6 as IE6 can't decide how to render it
authorArtur Signell <artur.signell@itmill.com>
Fri, 17 Sep 2010 08:37:09 +0000 (08:37 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 17 Sep 2010 08:37:09 +0000 (08:37 +0000)
svn changeset:14979/svn branch:6.4

tests/src/com/vaadin/tests/components/button/Buttons.java

index 7972d27df4ecd615ce88a573789e59407282144c..8af4d64bbdc8da3696ac227700e79de954822219 100644 (file)
@@ -49,7 +49,14 @@ public class Buttons extends ComponentTestCase<Button> {
                             + LoremIpsum.get(5000), nat);
             l.setWidth("100%");
             l.setHeight("65px");
-            addTestComponent(l);
+
+            boolean ie6 = (getBrowser().isIE() && getBrowser()
+                    .getBrowserMajorVersion() == 6);
+            if (!ie6 || !nat) {
+                // Skip this NativeButton for IE6 as it can't decide how to
+                // render it
+                addTestComponent(l);
+            }
         }
 
     }