From 113c6321ea58d934b3cb07cec8e730532181abc7 Mon Sep 17 00:00:00 2001 From: Teemu Pòˆntelin Date: Sun, 1 Jun 2014 23:57:25 +0300 Subject: Fix for handling a breakpoint with 0 as the lower bound (#13588) Added explicit isNaN checks to the results of parseInt function because JavaScript would always convert 0 to false. Change-Id: Ic904c321c0195ce50d9a498005459425b0c30d4c --- uitest/src/com/vaadin/tests/extensions/ResponsiveUITest.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'uitest/src/com') diff --git a/uitest/src/com/vaadin/tests/extensions/ResponsiveUITest.java b/uitest/src/com/vaadin/tests/extensions/ResponsiveUITest.java index 6827bd0a5d..f7cbd9477c 100644 --- a/uitest/src/com/vaadin/tests/extensions/ResponsiveUITest.java +++ b/uitest/src/com/vaadin/tests/extensions/ResponsiveUITest.java @@ -76,6 +76,9 @@ public class ResponsiveUITest extends MultiBrowserTest { assertEquals("-200px", $(".v-csslayout-grid.first").getAttribute("width-range")); + moveSplitter(-100); + assertEquals("0-100px", + $(".v-csslayout-grid.second").getAttribute("width-range")); } private void moveSplitter(int xOffset) { -- cgit v1.2.3