diff options
author | Taras Hupalo <taras.hupalo@gmail.com> | 2014-08-12 15:28:41 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2014-08-26 09:51:15 +0000 |
commit | f2551a9fc03636deb5fcd3f30c761dca946c8341 (patch) | |
tree | b59bc2c5ea1f7471dec4ef59826614b4f6d0adbf /uitest/src/com/vaadin/tests/push | |
parent | c8d58261954de18ef67eaf9043bd93360202cf06 (diff) | |
download | vaadin-framework-f2551a9fc03636deb5fcd3f30c761dca946c8341.tar.gz vaadin-framework-f2551a9fc03636deb5fcd3f30c761dca946c8341.zip |
replaced all org.json.* usages with elemental.json.* (#8942)
Change-Id: I4809fbbdb48f3e36c8e1da8552ff3fa734714105
Diffstat (limited to 'uitest/src/com/vaadin/tests/push')
-rw-r--r-- | uitest/src/com/vaadin/tests/push/TrackMessageSizeUI.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/uitest/src/com/vaadin/tests/push/TrackMessageSizeUI.java b/uitest/src/com/vaadin/tests/push/TrackMessageSizeUI.java index 6e2784f21d..e7a74775bf 100644 --- a/uitest/src/com/vaadin/tests/push/TrackMessageSizeUI.java +++ b/uitest/src/com/vaadin/tests/push/TrackMessageSizeUI.java @@ -23,8 +23,6 @@ import java.net.URL; import javax.servlet.ServletContext; import org.apache.commons.io.IOUtils; -import org.json.JSONArray; -import org.json.JSONException; import com.vaadin.annotations.JavaScript; import com.vaadin.server.VaadinRequest; @@ -32,6 +30,7 @@ import com.vaadin.server.VaadinService; import com.vaadin.server.VaadinServletService; import com.vaadin.tests.components.AbstractTestUIWithLog; import com.vaadin.ui.JavaScriptFunction; +import elemental.json.JsonArray; // Load vaadinPush.js so that jQueryVaadin is defined @JavaScript("vaadin://vaadinPush.debug.js") @@ -58,7 +57,7 @@ public class TrackMessageSizeUI extends AbstractTestUIWithLog { getPage().getJavaScript().addFunction("logToServer", new JavaScriptFunction() { @Override - public void call(JSONArray arguments) throws JSONException { + public void call(JsonArray arguments) { String message = arguments.getString(0); log(message); } |