summaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/serialization/LegacySerializerUITest.java
blob: 5ec2d2a304f6ce69b8ccc0d25f621b589049434c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.vaadin.tests.serialization;

import org.junit.Assert;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;

import com.vaadin.tests.tb3.SingleBrowserTest;

public class LegacySerializerUITest extends SingleBrowserTest {

    @Test
    public void testInfinity() {
        openTestURL();
        WebElement html = findElement(By.className("gwt-HTML"));
        Assert.assertEquals("doubleInfinity: Infinity", html.getText());
        // Can't send infinity back, never have been able to
        Assert.assertEquals("1. doubleInfinity: null", getLogRow(0));
    }

}