From: Leif Åstrand Date: Wed, 16 Nov 2011 09:32:56 +0000 (+0200) Subject: Remove test for changing theme on the fly X-Git-Tag: 7.0.0.alpha1~301 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4861e7d2969a670ceb89b3b11ec190c66e6577a0;p=vaadin-framework.git Remove test for changing theme on the fly --- diff --git a/tests/testbench/com/vaadin/tests/tickets/Ticket1924ThemeChanging.java b/tests/testbench/com/vaadin/tests/tickets/Ticket1924ThemeChanging.java deleted file mode 100644 index 981fd9cd5c..0000000000 --- a/tests/testbench/com/vaadin/tests/tickets/Ticket1924ThemeChanging.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.vaadin.tests.tickets; - -import com.vaadin.ui.Button; -import com.vaadin.ui.Button.ClickEvent; -import com.vaadin.ui.Button.ClickListener; -import com.vaadin.ui.Label; -import com.vaadin.ui.Panel; -import com.vaadin.ui.Window; - -public class Ticket1924ThemeChanging extends com.vaadin.Application { - - private Label l = new Label("Background should be red with test theme"); - - @SuppressWarnings("unused") - private Panel p; - - @Override - public void init() { - final Window main = new Window(getClass().getName().substring( - getClass().getName().lastIndexOf(".") + 1)); - setMainWindow(main); - - l.setStyleName("red"); - main.addComponent(l); - - Button b = new Button("Toggle tests-tickets theme"); - b.addListener(new ClickListener() { - boolean flag = false; - - public void buttonClick(ClickEvent event) { - if (flag == !flag) { - main.setTheme("tests-tickets"); - } else { - main.setTheme(null); - } - } - }); - - main.addComponent(b); - - b = new Button("Modify caption (should not reload page)"); - b.addListener(new ClickListener() { - public void buttonClick(ClickEvent event) { - main.setCaption(main.getCaption() + "."); - } - }); - - main.addComponent(b); - - } -} \ No newline at end of file