diff options
author | Artur Signell <artur@vaadin.com> | 2015-02-18 14:42:20 +0200 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2015-05-11 12:05:18 +0300 |
commit | cb9a01738a179a58d4d72bbffbc837f1445e3802 (patch) | |
tree | 0cfe901dcc1bfe786a68e659afd1882a8d54aec5 /uitest/src/com/vaadin/tests/serialization/SerializerTestTest.java | |
parent | f3aa03f54824682816295b6c0aa29862a4469a3d (diff) | |
download | vaadin-framework-cb9a01738a179a58d4d72bbffbc837f1445e3802.tar.gz vaadin-framework-cb9a01738a179a58d4d72bbffbc837f1445e3802.zip |
Converted javascript tests to TB4 and added date tests (#16797, #16786)
Change-Id: I0ac58945d70676135d982f5b829b065b96b1ffa4
Diffstat (limited to 'uitest/src/com/vaadin/tests/serialization/SerializerTestTest.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/serialization/SerializerTestTest.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/serialization/SerializerTestTest.java b/uitest/src/com/vaadin/tests/serialization/SerializerTestTest.java index 8f1bcb6266..b2eb0e6b01 100644 --- a/uitest/src/com/vaadin/tests/serialization/SerializerTestTest.java +++ b/uitest/src/com/vaadin/tests/serialization/SerializerTestTest.java @@ -30,6 +30,9 @@ public class SerializerTestTest extends MultiBrowserTest { Assert.assertEquals( "sendJson: {\"b\":false,\"s\":\"JSON\"}, null, \"value\"", getLogRow(logRow++)); + Assert.assertEquals( + "sendDateArray: January 31, 2013 10:00:00 PM UTC January 31, 2012 10:00:00 PM UTC", + getLogRow(logRow++)); Assert.assertEquals("sendDate: May 31, 2013 8:12:13 AM UTC", getLogRow(logRow++)); Assert.assertEquals("sendDate: January 1, 1970 12:00:00 AM UTC", @@ -80,6 +83,13 @@ public class SerializerTestTest extends MultiBrowserTest { "sendBoolean: false, false, [false, false, true, false, true, true]", getLogRow(logRow++)); Assert.assertEquals("sendBeanSubclass: 43", getLogRow(logRow++)); + Assert.assertEquals( + "state.dateArray: Thu Jan 01 02:00:00 GMT+200 1970 Thu Jan 01 02:00:00 GMT+200 1970", + getLogRow(logRow++)); + Assert.assertEquals("state.date2: Fri May 31 11:12:13 GMT+300 2013", + getLogRow(logRow++)); + Assert.assertEquals("state.date1: Thu Jan 01 02:00:00 GMT+200 1970", + getLogRow(logRow++)); Assert.assertEquals("state.jsonBoolean: false", getLogRow(logRow++)); Assert.assertEquals("state.jsonString: a string", getLogRow(logRow++)); Assert.assertEquals("state.jsonNull: NULL", getLogRow(logRow++)); |