]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added some ugly styles so that the feature can be visually verified
authorArtur Signell <artur.signell@itmill.com>
Thu, 18 Aug 2011 14:08:08 +0000 (14:08 +0000)
committerArtur Signell <artur.signell@itmill.com>
Thu, 18 Aug 2011 14:08:08 +0000 (14:08 +0000)
svn changeset:20478/svn branch:6.7

WebContent/VAADIN/themes/tests-tickets/styles.css
tests/src/com/vaadin/tests/components/tabsheet/TabSheetTabStyleNames.html
tests/src/com/vaadin/tests/components/tabsheet/TabSheetTabStyleNames.java

index e6001a6dc2ec9a3d432c69200f8230ec597fe67d..f088e0dd35990100625e1b8406912cd05f8930fc 100644 (file)
 
 .v-tabsheet-pg .v-tabsheet-tabitem-selected {
        font-weight: bold
+}
+
+.v-tabsheet-tabitemcell-TabSheetTabStyleNames .v-tabsheet-tabitem-selected .v-caption {
+       background-color: green;
+}
+
+.v-tabsheet-tabitemcell-TabSheetTabStyleNames .v-caption {
+       font-weight: bold;
+       background: none;
+       margin-left: 0px;
+       background-color: blue;
+}
+.v-tabsheet-tabitemcell-TabSheetTabStyleNames_0 .v-caption {
+       color: blue;
+}
+
+.v-tabsheet-tabitemcell-TabSheetTabStyleNames_1 .v-caption {
+       color: red;
+}
+
+.v-tabsheet-tabitemcell-TabSheetTabStyleNames .v-tabsheet-tabitem {
+       background: none;
+       border: 2px solid red;
 }
\ No newline at end of file
index 0ff83bbacae3cd4cb0ec8f00c2d1841d6f238aea..67bedd93a3e6e944e0fdaa12c889aff21310c452 100644 (file)
@@ -19,7 +19,7 @@
 <tr>
        <td>assertCSSClass</td>
        <td>vaadin=runcomvaadintestscomponentstabsheetTabSheetTabStyleNames::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VTabsheet[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
-       <td>v-tabsheet-tabitemcell-ticket5880</td>
+       <td>v-tabsheet-tabitemcell-TabSheetTabStyleNames</td>
 </tr>
 <tr>
        <td>click</td>
 <tr>
        <td>assertNotCSSClass</td>
        <td>vaadin=runcomvaadintestscomponentstabsheetTabSheetTabStyleNames::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VTabsheet[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]</td>
-       <td>v-tabsheet-tabitemcell-ticket5880</td>
+       <td>v-tabsheet-tabitemcell-TabSheetTabStyleNames</td>
 </tr>
 <tr>
        <td>assertCSSClass</td>
        <td>vaadin=runcomvaadintestscomponentstabsheetTabSheetTabStyleNames::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VTabsheet[0]/domChild[0]/domChild[0]/domChild[0]/domChild[0]/domChild[1]</td>
-       <td>v-tabsheet-tabitemcell-ticket5880_0</td>
+       <td>v-tabsheet-tabitemcell-TabSheetTabStyleNames_0</td>
 </tr>
 
 </tbody></table>
index 00b6e142b3e51a0c5b20e99b45a3443e85be8099..5c806b2ac212d579bdd05538370baaf2ac3f451d 100644 (file)
@@ -9,10 +9,12 @@ import com.vaadin.ui.TabSheet.Tab;
 \r
 public class TabSheetTabStyleNames extends TestBase {\r
 \r
-    private static final String STYLE_NAME = "ticket5880";\r
+    private static final String STYLE_NAME = "TabSheetTabStyleNames";\r
 \r
     @Override\r
     public void setup() {\r
+        setTheme("tests-tickets");\r
+\r
         TabSheet tabsheet = new TabSheet();\r
         final Tab tab1 = tabsheet.addTab(new Label(), "Tab 1");\r
         final Tab tab2 = tabsheet.addTab(new Label(), "Tab 2");\r