diff options
author | John Ahlroos <john@vaadin.com> | 2013-03-27 09:57:40 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-04-03 07:55:39 +0000 |
commit | bde44c29bdec4647dbec94b1ed2482baaf00cddf (patch) | |
tree | a8c2e855bbda0ad1180bf2ba72fe2cae28b7d83b /uitest/src/com/vaadin/tests/themes/CSSInjectTest.java | |
parent | d7bfb3a99cf2dee5a7622645357bfd606585b283 (diff) | |
download | vaadin-framework-bde44c29bdec4647dbec94b1ed2482baaf00cddf.tar.gz vaadin-framework-bde44c29bdec4647dbec94b1ed2482baaf00cddf.zip |
Implemented changes to CSS injection based on API review #5500
Change-Id: I2bed5f5a5c3cfc6b97e94cbd218bb06f446c7325
Diffstat (limited to 'uitest/src/com/vaadin/tests/themes/CSSInjectTest.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/themes/CSSInjectTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/uitest/src/com/vaadin/tests/themes/CSSInjectTest.java b/uitest/src/com/vaadin/tests/themes/CSSInjectTest.java index bedbf47fe2..f4448bf326 100644 --- a/uitest/src/com/vaadin/tests/themes/CSSInjectTest.java +++ b/uitest/src/com/vaadin/tests/themes/CSSInjectTest.java @@ -5,7 +5,7 @@ import java.io.InputStream; import java.util.UUID; import com.vaadin.server.Page; -import com.vaadin.server.Page.StyleSheet; +import com.vaadin.server.Page.Styles; import com.vaadin.server.StreamResource; import com.vaadin.shared.ui.label.ContentMode; import com.vaadin.tests.components.TestBase; @@ -19,10 +19,10 @@ public class CSSInjectTest extends TestBase { @Override protected void setup() { - final StyleSheet stylesheet = Page.getCurrent().getStyleSheet(); + final Styles stylesheet = Page.getCurrent().getStyles(); // Inject some resources initially - stylesheet.inject(new StreamResource(new StreamResource.StreamSource() { + stylesheet.add(new StreamResource(new StreamResource.StreamSource() { @Override public InputStream getStream() { @@ -44,7 +44,7 @@ public class CSSInjectTest extends TestBase { @Override public void buttonClick(ClickEvent event) { - stylesheet.inject(cssToInject.getValue()); + stylesheet.add(cssToInject.getValue()); cssToInject.setValue(""); } }); @@ -58,7 +58,7 @@ public class CSSInjectTest extends TestBase { final String css = cssToInject.getValue(); - stylesheet.inject(new StreamResource( + stylesheet.add(new StreamResource( new StreamResource.StreamSource() { @Override |