diff options
author | John Ahlroos <john@vaadin.com> | 2012-09-07 10:32:05 +0300 |
---|---|---|
committer | John Ahlroos <john@vaadin.com> | 2012-09-07 10:32:05 +0300 |
commit | 52fa9639bab979d13e852e42f6aba6fe60b4ffe4 (patch) | |
tree | aaf4486eae2df058d609da7391bdf788fdf32614 /uitest/src/com/vaadin/tests/layouts | |
parent | 074b1095ee302af67626055820853ed1b8a4ea86 (diff) | |
download | vaadin-framework-52fa9639bab979d13e852e42f6aba6fe60b4ffe4.tar.gz vaadin-framework-52fa9639bab979d13e852e42f6aba6fe60b4ffe4.zip |
Removed deprecated ContenMode.XHTML
Diffstat (limited to 'uitest/src/com/vaadin/tests/layouts')
4 files changed, 9 insertions, 9 deletions
diff --git a/uitest/src/com/vaadin/tests/layouts/HiddenHorizontalLayout.java b/uitest/src/com/vaadin/tests/layouts/HiddenHorizontalLayout.java index dc0c8958ea..2b7fc273ad 100644 --- a/uitest/src/com/vaadin/tests/layouts/HiddenHorizontalLayout.java +++ b/uitest/src/com/vaadin/tests/layouts/HiddenHorizontalLayout.java @@ -42,7 +42,7 @@ public class HiddenHorizontalLayout extends TestBase { + "3. Click \"toggle layout visibility\"<br>" + "4. Resize browser window to full <br/>" + "5. Click \"toggle layout visibility\"<br/>", - ContentMode.XHTML); + ContentMode.HTML); vl.addComponent(l); Button b = new Button("toggle layout visibility", new Button.ClickListener() { diff --git a/uitest/src/com/vaadin/tests/layouts/TestLayoutPerformance.java b/uitest/src/com/vaadin/tests/layouts/TestLayoutPerformance.java index 85ecf2897b..f80d91ae1b 100644 --- a/uitest/src/com/vaadin/tests/layouts/TestLayoutPerformance.java +++ b/uitest/src/com/vaadin/tests/layouts/TestLayoutPerformance.java @@ -34,12 +34,12 @@ public class TestLayoutPerformance extends TestBase { @Override protected void setup() { Label label = new Label("<h1>CssLayout performance test.</h1>", - ContentMode.XHTML); + ContentMode.HTML); getLayout().addComponent(label); label = new Label( "<em>Hint</em>. Use debug dialog to measure rendering times TODO: extend with size settings (to both layout and content).", - ContentMode.XHTML); + ContentMode.HTML); getLayout().addComponent(label); ns = new NativeSelect("Select component to test"); diff --git a/uitest/src/com/vaadin/tests/layouts/layouttester/HorizontalLayoutTests.java b/uitest/src/com/vaadin/tests/layouts/layouttester/HorizontalLayoutTests.java index 0042f0ba11..2362653ce1 100644 --- a/uitest/src/com/vaadin/tests/layouts/layouttester/HorizontalLayoutTests.java +++ b/uitest/src/com/vaadin/tests/layouts/layouttester/HorizontalLayoutTests.java @@ -115,7 +115,7 @@ public class HorizontalLayoutTests extends AbstractLayoutTests { final AbstractComponent c1 = new Button("BUTTON"); final AbstractComponent c2 = new Label("<b>LABEL</b>", - ContentMode.XHTML); + ContentMode.HTML); final AbstractComponent c3 = new Table("TABLE"); c3.setHeight("100px"); c3.setWidth("100%"); diff --git a/uitest/src/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java b/uitest/src/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java index 3e668289fe..62dc85e8ad 100644 --- a/uitest/src/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java +++ b/uitest/src/com/vaadin/tests/layouts/layouttester/VerticalLayoutTests.java @@ -47,7 +47,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { ((TextField) components[i]).setValue("FIELD " + i); vlo.addComponent(components[i]); vlo.setComponentAlignment(components[i], alignments[i]); - vlo.addComponent(new Label("<hr />", ContentMode.XHTML)); + vlo.addComponent(new Label("<hr />", ContentMode.HTML)); } baseLayout.addComponent(vlo); vlo = getTestLaytout(); @@ -56,7 +56,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { ((TextField) components[i]).setValue("FIELD " + i); vlo.addComponent(components[i]); vlo.setComponentAlignment(components[i], alignments[i]); - vlo.addComponent(new Label("<hr />", ContentMode.XHTML)); + vlo.addComponent(new Label("<hr />", ContentMode.HTML)); } baseLayout.addComponent(vlo); return baseLayout; @@ -116,7 +116,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { final AbstractComponent c1 = new Button("BUTTON"); final AbstractComponent c2 = new Label("<b>LABEL</b>", - ContentMode.XHTML); + ContentMode.HTML); final AbstractComponent c3 = new Table("TABLE"); c3.setHeight("100px"); c3.setWidth("100%"); @@ -278,7 +278,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { vlo2.addComponent(c1); vlo2.addComponent(new Label( "<div style='height: 1px'></div><hr /><div style='height: 1px'></div>", - ContentMode.XHTML)); + ContentMode.HTML)); vlo2.addComponent(c2); vlo2.setExpandRatio(c1, 0.5f); vlo2.setExpandRatio(c2, 0.5f); @@ -475,7 +475,7 @@ public class VerticalLayoutTests extends AbstractLayoutTests { // Must add something around the hr to avoid the margins collapsing vlo2.addComponent(new Label( "<div style='height: 1px'></div><hr /><div style='height: 1px'></div>", - ContentMode.XHTML)); + ContentMode.HTML)); vlo2.addComponent(c2); vlo2.setExpandRatio(c1, 0.5f); vlo2.setExpandRatio(c2, 0.5f); |