diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-09-10 13:47:08 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-09-10 13:47:23 +0300 |
commit | bd0e2ecb01ce4ba873c7bf5f31c1ef583c85bd30 (patch) | |
tree | 6a7f616821246c4fdecb9fd8d69d6937c1c39294 /uitest/src | |
parent | 6ef39c27fa6edd9454752bff18ea21ced19c91c0 (diff) | |
download | vaadin-framework-bd0e2ecb01ce4ba873c7bf5f31c1ef583c85bd30.tar.gz vaadin-framework-bd0e2ecb01ce4ba873c7bf5f31c1ef583c85bd30.zip |
Don't use Resource with the Page.open API (#9522)
Diffstat (limited to 'uitest/src')
-rw-r--r-- | uitest/src/com/vaadin/tests/TestForWindowOpen.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/uitest/src/com/vaadin/tests/TestForWindowOpen.java b/uitest/src/com/vaadin/tests/TestForWindowOpen.java index 253fd3aeea..c3827e47ee 100644 --- a/uitest/src/com/vaadin/tests/TestForWindowOpen.java +++ b/uitest/src/com/vaadin/tests/TestForWindowOpen.java @@ -16,7 +16,6 @@ package com.vaadin.tests; -import com.vaadin.server.ExternalResource; import com.vaadin.ui.Button; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.CustomComponent; @@ -35,9 +34,8 @@ public class TestForWindowOpen extends CustomComponent { @Override public void buttonClick(ClickEvent event) { - final ExternalResource r = new ExternalResource( - "http://www.google.com"); - UI.getCurrent().getPage().open(r); + UI.getCurrent().getPage() + .setLocation("http://www.google.com"); } @@ -48,9 +46,8 @@ public class TestForWindowOpen extends CustomComponent { @Override public void buttonClick(ClickEvent event) { - final ExternalResource r = new ExternalResource( - "http://www.google.com"); - UI.getCurrent().getPage().open(r, "mytarget"); + UI.getCurrent().getPage() + .open("http://www.google.com", "mytarget"); } @@ -61,9 +58,8 @@ public class TestForWindowOpen extends CustomComponent { @Override public void buttonClick(ClickEvent event) { - final ExternalResource r = new ExternalResource( - "http://www.google.com"); - UI.getCurrent().getPage().open(r, "secondtarget"); + UI.getCurrent().getPage() + .open("http://www.google.com", "secondtarget"); } |