]> source.dussan.org Git - vaadin-framework.git/commitdiff
CRLF -> LF
authorArtur Signell <artur@vaadin.com>
Thu, 28 Jun 2012 19:07:53 +0000 (22:07 +0300)
committerArtur Signell <artur@vaadin.com>
Thu, 28 Jun 2012 19:25:27 +0000 (22:25 +0300)
src/com/vaadin/terminal/gwt/client/SuperDevMode.java
tests/testbench/com/vaadin/tests/components/AddRemoveSetStyleNamesTest.html

index 77a82c9aaf3b2d08c127b7c4318f9f816b43562e..e94aea4ae10b68e1d7c33371050c84f796adfeda 100644 (file)
-package com.vaadin.terminal.gwt.client;\r
-\r
-import com.google.gwt.core.client.GWT;\r
-import com.google.gwt.core.client.JavaScriptObject;\r
-import com.google.gwt.http.client.UrlBuilder;\r
-import com.google.gwt.jsonp.client.JsonpRequestBuilder;\r
-import com.google.gwt.storage.client.Storage;\r
-import com.google.gwt.user.client.Window.Location;\r
-import com.google.gwt.user.client.rpc.AsyncCallback;\r
-import com.vaadin.terminal.gwt.client.ui.notification.VNotification;\r
-import com.vaadin.terminal.gwt.client.ui.notification.VNotification.EventListener;\r
-import com.vaadin.terminal.gwt.client.ui.notification.VNotification.HideEvent;\r
-\r
-/**\r
- * Class that enables SuperDevMode using a ?superdevmode parameter in the url.\r
- * \r
- * @author Vaadin Ltd\r
- * @version @VERSION@\r
- * @since 7.0\r
- * \r
- */\r
-public class SuperDevMode {\r
-\r
-    private static final int COMPILE_TIMEOUT_IN_SECONDS = 60;\r
-    protected static final String SKIP_RECOMPILE = "VaadinSuperDevMode_skip_recompile";\r
-\r
-    public static class RecompileResult extends JavaScriptObject {\r
-        protected RecompileResult() {\r
-\r
-        }\r
-\r
-        public final native boolean ok()\r
-        /*-{\r
-         return this.status == "ok";\r
-        }-*/;\r
-    }\r
-\r
-    private static void recompileWidgetsetAndStartInDevMode(\r
-            final String serverUrl) {\r
-        VConsole.log("Recompiling widgetset using<br/>" + serverUrl\r
-                + "<br/>and then reloading in super dev mode");\r
-        VNotification n = new VNotification();\r
-        n.show("<b>Recompiling widgetset, this should not take too long</b>",\r
-                VNotification.CENTERED, VNotification.STYLE_SYSTEM);\r
-\r
-        JsonpRequestBuilder b = new JsonpRequestBuilder();\r
-        b.setCallbackParam("_callback");\r
-        b.setTimeout(COMPILE_TIMEOUT_IN_SECONDS * 1000);\r
-        b.requestObject(serverUrl + "recompile/" + GWT.getModuleName() + "?"\r
-                + getRecompileParameters(GWT.getModuleName()),\r
-                new AsyncCallback<RecompileResult>() {\r
-\r
-                    public void onSuccess(RecompileResult result) {\r
-                        VConsole.log("JSONP compile call successful");\r
-\r
-                        if (!result.ok()) {\r
-                            VConsole.log("* result: " + result);\r
-                            failed();\r
-                            return;\r
-                        }\r
-\r
-                        setSession(\r
-                                getSuperDevModeHookKey(),\r
-                                getSuperDevWidgetSetUrl(GWT.getModuleName(),\r
-                                        serverUrl));\r
-                        setSession(SKIP_RECOMPILE, "1");\r
-\r
-                        VConsole.log("* result: OK. Reloading");\r
-                        Location.reload();\r
-                    }\r
-\r
-                    public void onFailure(Throwable caught) {\r
-                        VConsole.error("JSONP compile call failed");\r
-                        // Don't log exception as they are shown as\r
-                        // notifications\r
-                        VConsole.error(Util.getSimpleName(caught) + ": "\r
-                                + caught.getMessage());\r
-                        failed();\r
-\r
-                    }\r
-\r
-                    private void failed() {\r
-                        VNotification n = new VNotification();\r
-                        n.addEventListener(new EventListener() {\r
-\r
-                            public void notificationHidden(HideEvent event) {\r
-                                recompileWidgetsetAndStartInDevMode(serverUrl);\r
-                            }\r
-                        });\r
-                        n.show("Recompilation failed.<br/>"\r
-                                + "Make sure CodeServer is running, "\r
-                                + "check its output and click to retry",\r
-                                VNotification.CENTERED,\r
-                                VNotification.STYLE_SYSTEM);\r
-                    }\r
-                });\r
-\r
-    }\r
-\r
-    protected static String getSuperDevWidgetSetUrl(String widgetsetName,\r
-            String serverUrl) {\r
-        return serverUrl + GWT.getModuleName() + "/" + GWT.getModuleName()\r
-                + ".nocache.js";\r
-    }\r
-\r
-    private native static String getRecompileParameters(String moduleName)\r
-    /*-{\r
-        var prop_map = $wnd.__gwt_activeModules[moduleName].bindings();\r
-        \r
-        // convert map to URL parameter string\r
-        var props = [];\r
-        for (var key in prop_map) {\r
-           props.push(encodeURIComponent(key) + '=' + encodeURIComponent(prop_map[key]))\r
-        }\r
-        \r
-        return props.join('&') + '&';\r
-    }-*/;\r
-\r
-    private static void setSession(String key, String value) {\r
-        Storage.getSessionStorageIfSupported().setItem(key, value);\r
-    }\r
-\r
-    private static String getSession(String key) {\r
-        return Storage.getSessionStorageIfSupported().getItem(key);\r
-    }\r
-\r
-    private static void removeSession(String key) {\r
-        Storage.getSessionStorageIfSupported().removeItem(key);\r
-    }\r
-\r
-    protected static void disableDevModeAndReload() {\r
-        removeSession(getSuperDevModeHookKey());\r
-        redirect(false);\r
-    }\r
-\r
-    protected static void redirect(boolean devModeOn) {\r
-        UrlBuilder createUrlBuilder = Location.createUrlBuilder();\r
-        if (!devModeOn) {\r
-            createUrlBuilder.removeParameter("superdevmode");\r
-        } else {\r
-            createUrlBuilder.setParameter("superdevmode", "");\r
-        }\r
-\r
-        Location.assign(createUrlBuilder.buildString());\r
-\r
-    }\r
-\r
-    private static String getSuperDevModeHookKey() {\r
-        String widgetsetName = GWT.getModuleName();\r
-        final String superDevModeKey = "__gwtDevModeHook:" + widgetsetName;\r
-        return superDevModeKey;\r
-    }\r
-\r
-    private static boolean hasSession(String key) {\r
-        return getSession(key) != null;\r
-    }\r
-\r
-    /**\r
-     * The URL of the code server. The default URL (http://localhost:9876/) will\r
-     * be used if this is empty or null.\r
-     * \r
-     * @param serverUrl\r
-     *            The url of the code server or null to use the default\r
-     * @return true if recompile started, false if we are running in\r
-     *         SuperDevMode\r
-     */\r
-    protected static boolean recompileIfNeeded(String serverUrl) {\r
-        if (serverUrl == null || "".equals(serverUrl)) {\r
-            serverUrl = "http://localhost:9876/";\r
-        } else {\r
-            serverUrl = "http://" + serverUrl + "/";\r
-        }\r
-\r
-        if (hasSession(SKIP_RECOMPILE)) {\r
-            VConsole.log("Running in SuperDevMode");\r
-            // When we get here, we are running in super dev mode\r
-\r
-            // Remove the flag so next reload will recompile\r
-            removeSession(SKIP_RECOMPILE);\r
-\r
-            // Remove the gwt flag so we will not end up in dev mode if we\r
-            // remove the url parameter manually\r
-            removeSession(getSuperDevModeHookKey());\r
-\r
-            return false;\r
-        }\r
-\r
-        recompileWidgetsetAndStartInDevMode(serverUrl);\r
-        return true;\r
-    }\r
-\r
-    protected static boolean isSuperDevModeEnabledInModule() {\r
-        String moduleName = GWT.getModuleName();\r
-        return isSuperDevModeEnabledInModule(moduleName);\r
-    }\r
-\r
-    protected native static boolean isSuperDevModeEnabledInModule(\r
-            String moduleName)\r
-    /*-{\r
-        if (!$wnd.__gwt_activeModules)\r
-           return false;\r
-        var mod = $wnd.__gwt_activeModules[moduleName];\r
-        if (!mod)\r
-            return false;\r
-\r
-        if (mod.superdevmode) {\r
-           // Running in super dev mode already, it is supported\r
-           return true;\r
-        }\r
-\r
-        return mod.canRedirect;\r
-    }-*/;\r
-\r
-    /**\r
-     * Enables SuperDevMode if the url contains the "superdevmode" parameter.\r
-     * <p>\r
-     * The caller should not continue initialization of the application if this\r
-     * method returns true. The application will be restarted once compilation\r
-     * is done and then this method will return false.\r
-     * </p>\r
-     * \r
-     * @return true if a recompile operation has started and the page will be\r
-     *         reloaded once it is done, false if no recompilation will be done.\r
-     */\r
-    public static boolean enableBasedOnParameter() {\r
-        String superDevModeParameter = Location.getParameter("superdevmode");\r
-        if (superDevModeParameter != null) {\r
-            // Need to check the recompile flag also because if we are running\r
-            // in super dev mode, as a result of the recompile, the enabled\r
-            // check will fail...\r
-            if (!isSuperDevModeEnabledInModule()) {\r
-                showError("SuperDevMode is not enabled for this module/widgetset.<br/>"\r
-                        + "Ensure that your module definition (.gwt.xml) contains <br/>"\r
-                        + "&lt;add-linker name=&quot;xsiframe&quot;/&gt;<br/>"\r
-                        + "&lt;set-configuration-property name=&quot;devModeRedirectEnabled&quot; value=&quot;true&quot; /&gt;<br/>");\r
-                return false;\r
-            }\r
-            return SuperDevMode.recompileIfNeeded(superDevModeParameter);\r
-        }\r
-        return false;\r
-    }\r
-\r
-    private static void showError(String message) {\r
-        VNotification n = new VNotification();\r
-        n.show(message, VNotification.CENTERED_TOP, VNotification.STYLE_SYSTEM);\r
-    }\r
-}\r
+package com.vaadin.terminal.gwt.client;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.core.client.JavaScriptObject;
+import com.google.gwt.http.client.UrlBuilder;
+import com.google.gwt.jsonp.client.JsonpRequestBuilder;
+import com.google.gwt.storage.client.Storage;
+import com.google.gwt.user.client.Window.Location;
+import com.google.gwt.user.client.rpc.AsyncCallback;
+import com.vaadin.terminal.gwt.client.ui.notification.VNotification;
+import com.vaadin.terminal.gwt.client.ui.notification.VNotification.EventListener;
+import com.vaadin.terminal.gwt.client.ui.notification.VNotification.HideEvent;
+
+/**
+ * Class that enables SuperDevMode using a ?superdevmode parameter in the url.
+ * 
+ * @author Vaadin Ltd
+ * @version @VERSION@
+ * @since 7.0
+ * 
+ */
+public class SuperDevMode {
+
+    private static final int COMPILE_TIMEOUT_IN_SECONDS = 60;
+    protected static final String SKIP_RECOMPILE = "VaadinSuperDevMode_skip_recompile";
+
+    public static class RecompileResult extends JavaScriptObject {
+        protected RecompileResult() {
+
+        }
+
+        public final native boolean ok()
+        /*-{
+         return this.status == "ok";
+        }-*/;
+    }
+
+    private static void recompileWidgetsetAndStartInDevMode(
+            final String serverUrl) {
+        VConsole.log("Recompiling widgetset using<br/>" + serverUrl
+                + "<br/>and then reloading in super dev mode");
+        VNotification n = new VNotification();
+        n.show("<b>Recompiling widgetset, this should not take too long</b>",
+                VNotification.CENTERED, VNotification.STYLE_SYSTEM);
+
+        JsonpRequestBuilder b = new JsonpRequestBuilder();
+        b.setCallbackParam("_callback");
+        b.setTimeout(COMPILE_TIMEOUT_IN_SECONDS * 1000);
+        b.requestObject(serverUrl + "recompile/" + GWT.getModuleName() + "?"
+                + getRecompileParameters(GWT.getModuleName()),
+                new AsyncCallback<RecompileResult>() {
+
+                    public void onSuccess(RecompileResult result) {
+                        VConsole.log("JSONP compile call successful");
+
+                        if (!result.ok()) {
+                            VConsole.log("* result: " + result);
+                            failed();
+                            return;
+                        }
+
+                        setSession(
+                                getSuperDevModeHookKey(),
+                                getSuperDevWidgetSetUrl(GWT.getModuleName(),
+                                        serverUrl));
+                        setSession(SKIP_RECOMPILE, "1");
+
+                        VConsole.log("* result: OK. Reloading");
+                        Location.reload();
+                    }
+
+                    public void onFailure(Throwable caught) {
+                        VConsole.error("JSONP compile call failed");
+                        // Don't log exception as they are shown as
+                        // notifications
+                        VConsole.error(Util.getSimpleName(caught) + ": "
+                                + caught.getMessage());
+                        failed();
+
+                    }
+
+                    private void failed() {
+                        VNotification n = new VNotification();
+                        n.addEventListener(new EventListener() {
+
+                            public void notificationHidden(HideEvent event) {
+                                recompileWidgetsetAndStartInDevMode(serverUrl);
+                            }
+                        });
+                        n.show("Recompilation failed.<br/>"
+                                + "Make sure CodeServer is running, "
+                                + "check its output and click to retry",
+                                VNotification.CENTERED,
+                                VNotification.STYLE_SYSTEM);
+                    }
+                });
+
+    }
+
+    protected static String getSuperDevWidgetSetUrl(String widgetsetName,
+            String serverUrl) {
+        return serverUrl + GWT.getModuleName() + "/" + GWT.getModuleName()
+                + ".nocache.js";
+    }
+
+    private native static String getRecompileParameters(String moduleName)
+    /*-{
+        var prop_map = $wnd.__gwt_activeModules[moduleName].bindings();
+        
+        // convert map to URL parameter string
+        var props = [];
+        for (var key in prop_map) {
+           props.push(encodeURIComponent(key) + '=' + encodeURIComponent(prop_map[key]))
+        }
+        
+        return props.join('&') + '&';
+    }-*/;
+
+    private static void setSession(String key, String value) {
+        Storage.getSessionStorageIfSupported().setItem(key, value);
+    }
+
+    private static String getSession(String key) {
+        return Storage.getSessionStorageIfSupported().getItem(key);
+    }
+
+    private static void removeSession(String key) {
+        Storage.getSessionStorageIfSupported().removeItem(key);
+    }
+
+    protected static void disableDevModeAndReload() {
+        removeSession(getSuperDevModeHookKey());
+        redirect(false);
+    }
+
+    protected static void redirect(boolean devModeOn) {
+        UrlBuilder createUrlBuilder = Location.createUrlBuilder();
+        if (!devModeOn) {
+            createUrlBuilder.removeParameter("superdevmode");
+        } else {
+            createUrlBuilder.setParameter("superdevmode", "");
+        }
+
+        Location.assign(createUrlBuilder.buildString());
+
+    }
+
+    private static String getSuperDevModeHookKey() {
+        String widgetsetName = GWT.getModuleName();
+        final String superDevModeKey = "__gwtDevModeHook:" + widgetsetName;
+        return superDevModeKey;
+    }
+
+    private static boolean hasSession(String key) {
+        return getSession(key) != null;
+    }
+
+    /**
+     * The URL of the code server. The default URL (http://localhost:9876/) will
+     * be used if this is empty or null.
+     * 
+     * @param serverUrl
+     *            The url of the code server or null to use the default
+     * @return true if recompile started, false if we are running in
+     *         SuperDevMode
+     */
+    protected static boolean recompileIfNeeded(String serverUrl) {
+        if (serverUrl == null || "".equals(serverUrl)) {
+            serverUrl = "http://localhost:9876/";
+        } else {
+            serverUrl = "http://" + serverUrl + "/";
+        }
+
+        if (hasSession(SKIP_RECOMPILE)) {
+            VConsole.log("Running in SuperDevMode");
+            // When we get here, we are running in super dev mode
+
+            // Remove the flag so next reload will recompile
+            removeSession(SKIP_RECOMPILE);
+
+            // Remove the gwt flag so we will not end up in dev mode if we
+            // remove the url parameter manually
+            removeSession(getSuperDevModeHookKey());
+
+            return false;
+        }
+
+        recompileWidgetsetAndStartInDevMode(serverUrl);
+        return true;
+    }
+
+    protected static boolean isSuperDevModeEnabledInModule() {
+        String moduleName = GWT.getModuleName();
+        return isSuperDevModeEnabledInModule(moduleName);
+    }
+
+    protected native static boolean isSuperDevModeEnabledInModule(
+            String moduleName)
+    /*-{
+        if (!$wnd.__gwt_activeModules)
+           return false;
+        var mod = $wnd.__gwt_activeModules[moduleName];
+        if (!mod)
+            return false;
+
+        if (mod.superdevmode) {
+           // Running in super dev mode already, it is supported
+           return true;
+        }
+
+        return mod.canRedirect;
+    }-*/;
+
+    /**
+     * Enables SuperDevMode if the url contains the "superdevmode" parameter.
+     * <p>
+     * The caller should not continue initialization of the application if this
+     * method returns true. The application will be restarted once compilation
+     * is done and then this method will return false.
+     * </p>
+     * 
+     * @return true if a recompile operation has started and the page will be
+     *         reloaded once it is done, false if no recompilation will be done.
+     */
+    public static boolean enableBasedOnParameter() {
+        String superDevModeParameter = Location.getParameter("superdevmode");
+        if (superDevModeParameter != null) {
+            // Need to check the recompile flag also because if we are running
+            // in super dev mode, as a result of the recompile, the enabled
+            // check will fail...
+            if (!isSuperDevModeEnabledInModule()) {
+                showError("SuperDevMode is not enabled for this module/widgetset.<br/>"
+                        + "Ensure that your module definition (.gwt.xml) contains <br/>"
+                        + "&lt;add-linker name=&quot;xsiframe&quot;/&gt;<br/>"
+                        + "&lt;set-configuration-property name=&quot;devModeRedirectEnabled&quot; value=&quot;true&quot; /&gt;<br/>");
+                return false;
+            }
+            return SuperDevMode.recompileIfNeeded(superDevModeParameter);
+        }
+        return false;
+    }
+
+    private static void showError(String message) {
+        VNotification n = new VNotification();
+        n.show(message, VNotification.CENTERED_TOP, VNotification.STYLE_SYSTEM);
+    }
+}
index a09a1e06e5938c7f34ca400b6415263790ef083e..512140cc6d8b6d8703a1e0dd985e4954476b8dee 100644 (file)
-<?xml version="1.0" encoding="UTF-8"?>\r
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\r
-<head profile="http://selenium-ide.openqa.org/profiles/test-case">\r
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\r
-<link rel="selenium.base" href="http://localhost:8888/" />\r
-<title>AddRemoveSetStyleNamesTest</title>\r
-</head>\r
-<body>\r
-<table cellpadding="1" cellspacing="1" border="1">\r
-<thead>\r
-<tr><td rowspan="1" colspan="3">AddRemoveSetStyleNamesTest</td></tr>\r
-</thead><tbody>\r
-<tr>\r
-       <td>open</td>\r
-       <td>run/com.vaadin.tests.components.AddRemoveSetStyleNamesTest?restartApplication</td>\r
-       <td></td>\r
-</tr>\r
-<!--add style 1. assert style1-->\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[0]/domChild[0]/domChild[0]</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>v-datefield-style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>style1</td>\r
-</tr>\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>v-datefield-popup-style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>style1</td>\r
-</tr>\r
-<!--add style 2. assert style1, style2-->\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[1]/domChild[0]/domChild[0]</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>v-datefield-style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>v-datefield-style2</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>style2</td>\r
-</tr>\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>v-datefield-popup-style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>v-datefield-popup-style2</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>style2</td>\r
-</tr>\r
-<!--remove style 1. assertNot style1. assert style2-->\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[0]/domChild[0]/domChild[0]</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>v-datefield-style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>v-datefield-style2</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>style2</td>\r
-</tr>\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>v-datefield-popup-style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>v-datefield-popup-style2</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>style2</td>\r
-</tr>\r
-<!--remove style 2. assertNot style1, style2-->\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[1]/domChild[0]/domChild[0]</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>v-datefield-style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>v-datefield-style2</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>style2</td>\r
-</tr>\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>v-datefield-popup-style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>v-datefield-popup-style2</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>style2</td>\r
-</tr>\r
-<!--add style1. set thestyle. assertNot style1. assert thestyle.-->\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[0]/domChild[0]/domChild[0]</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[2]/domChild[0]/domChild[0]</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>v-datefield-style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>thestyle</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>v-datefield-thestyle</td>\r
-</tr>\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>v-datefield-popup-style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>v-datefield-popup-thestyle</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>thestyle</td>\r
-</tr>\r
-<!--remove thestyle. assertNot thestyle-->\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[2]/domChild[0]/domChild[0]</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>thestyle</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>v-datefield-thestyle</td>\r
-</tr>\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>v-datefield-popup-thestyle</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>thestyle</td>\r
-</tr>\r
-<!--set thestyle. add style1. assert thestyle, style1-->\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[2]/domChild[0]/domChild[0]</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[0]/domChild[0]/domChild[0]</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>thestyle</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>v-datefield-thestyle</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>v-datefield-style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>style1</td>\r
-</tr>\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>v-datefield-popup-style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>v-datefield-popup-thestyle</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>thestyle</td>\r
-</tr>\r
-<!--remove style 1. assertNot style1. assert thestyle-->\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[0]/domChild[0]/domChild[0]</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>v-datefield-style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>v-datefield-thestyle</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>thestyle</td>\r
-</tr>\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>v-datefield-popup-style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>v-datefield-popup-thestyle</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>thestyle</td>\r
-</tr>\r
-<!--add style 1. remove thestyle. assertNot style1, thestyle-->\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[0]/domChild[0]/domChild[0]</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[2]/domChild[0]/domChild[0]</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>v-datefield-style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>v-datefield-thestyle</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>\r
-       <td>thestyle</td>\r
-</tr>\r
-<tr>\r
-       <td>mouseClick</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>\r
-       <td></td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>v-datefield-popup-style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>style1</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>v-datefield-popup-thestyle</td>\r
-</tr>\r
-<tr>\r
-       <td>assertNotCSSClass</td>\r
-       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>\r
-       <td>thestyle</td>\r
-</tr>\r
-\r
-</tbody></table>\r
-</body>\r
-</html>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="http://localhost:8888/" />
+<title>AddRemoveSetStyleNamesTest</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">AddRemoveSetStyleNamesTest</td></tr>
+</thead><tbody>
+<tr>
+       <td>open</td>
+       <td>run/com.vaadin.tests.components.AddRemoveSetStyleNamesTest?restartApplication</td>
+       <td></td>
+</tr>
+<!--add style 1. assert style1-->
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[0]/domChild[0]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>v-datefield-style1</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>style1</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>v-datefield-popup-style1</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>style1</td>
+</tr>
+<!--add style 2. assert style1, style2-->
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[1]/domChild[0]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>v-datefield-style1</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>style1</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>v-datefield-style2</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>style2</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>v-datefield-popup-style1</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>style1</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>v-datefield-popup-style2</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>style2</td>
+</tr>
+<!--remove style 1. assertNot style1. assert style2-->
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[0]/domChild[0]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>v-datefield-style1</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>style1</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>v-datefield-style2</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>style2</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>v-datefield-popup-style1</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>style1</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>v-datefield-popup-style2</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>style2</td>
+</tr>
+<!--remove style 2. assertNot style1, style2-->
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[1]/domChild[0]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>v-datefield-style1</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>style1</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>v-datefield-style2</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>style2</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>v-datefield-popup-style1</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>style1</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>v-datefield-popup-style2</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>style2</td>
+</tr>
+<!--add style1. set thestyle. assertNot style1. assert thestyle.-->
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[0]/domChild[0]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[2]/domChild[0]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>v-datefield-style1</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>style1</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>thestyle</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>v-datefield-thestyle</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>v-datefield-popup-style1</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>style1</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>v-datefield-popup-thestyle</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>thestyle</td>
+</tr>
+<!--remove thestyle. assertNot thestyle-->
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[2]/domChild[0]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>thestyle</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>v-datefield-thestyle</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>v-datefield-popup-thestyle</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>thestyle</td>
+</tr>
+<!--set thestyle. add style1. assert thestyle, style1-->
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[2]/domChild[0]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[0]/domChild[0]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>thestyle</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>v-datefield-thestyle</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>v-datefield-style1</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>style1</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>v-datefield-popup-style1</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>style1</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>v-datefield-popup-thestyle</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>thestyle</td>
+</tr>
+<!--remove style 1. assertNot style1. assert thestyle-->
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[0]/domChild[0]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>v-datefield-style1</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>style1</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>v-datefield-thestyle</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>thestyle</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>v-datefield-popup-style1</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>style1</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>v-datefield-popup-thestyle</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>thestyle</td>
+</tr>
+<!--add style 1. remove thestyle. assertNot style1, thestyle-->
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[0]/domChild[0]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VButton[2]/domChild[0]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>v-datefield-style1</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>style1</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>v-datefield-thestyle</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]</td>
+       <td>thestyle</td>
+</tr>
+<tr>
+       <td>mouseClick</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::/VVerticalLayout[0]/VVerticalLayout[0]/VPopupCalendar[0]#popupButton</td>
+       <td></td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>v-datefield-popup-style1</td>
+</tr>
+<tr>
+       <td>assertCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>style1</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>v-datefield-popup-thestyle</td>
+</tr>
+<tr>
+       <td>assertNotCSSClass</td>
+       <td>vaadin=runcomvaadintestscomponentsAddRemoveSetStyleNamesTest::Root/VOverlay[0]</td>
+       <td>thestyle</td>
+</tr>
+
+</tbody></table>
+</body>
+</html>