From 6744d2c1144301f0c36ed45356319117ebea8aae Mon Sep 17 00:00:00 2001 From: John Ahlroos Date: Wed, 5 Sep 2012 11:42:56 +0300 Subject: [PATCH] Fixed ComponentLocator in the case where tests refer to an AbsolutePanel inside a Gridlayout which has been removed. --- client/src/com/vaadin/client/ComponentLocator.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/com/vaadin/client/ComponentLocator.java b/client/src/com/vaadin/client/ComponentLocator.java index 6cdccc0ff0..f57946eea8 100644 --- a/client/src/com/vaadin/client/ComponentLocator.java +++ b/client/src/com/vaadin/client/ComponentLocator.java @@ -537,6 +537,11 @@ public class ComponentLocator { String[] nextSplit = nextPart.split("\\[", 2); String nextWidgetClassName = nextSplit[0]; + if ("VVerticalLayout".equals(nextWidgetClassName) + || "VHorizontalLayout".equals(nextWidgetClassName)) { + nextWidgetClassName = "VBoxLayout"; + } + // Find the n:th child and count the number of children with // the same type before it int nextIndex = 0; -- 2.39.5