aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket5952.java
blob: 7af3da6990a25f2be90a72a49f06afa501299c3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.vaadin.tests.tickets;

import com.vaadin.Application;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI.LegacyWindow;

public class Ticket5952 extends Application {

    @Override
    public void init() {
        final LegacyWindow mainWindow = new LegacyWindow(
                "Forumtests Application");
        setMainWindow(mainWindow);

        String mathml = "<math mode='display' xmlns='http://www.w3.org/1998/Math/MathML'>"
                + "<mrow>"
                + "    <msup>"
                + "      <mi>x</mi>"
                + "      <mn>2</mn>"
                + "    </msup>"
                + "    <msup>"
                + "      <mi>c</mi>"
                + "      <mn>2</mn>"
                + "    </msup>"
                + "  </mrow>" + "</math>";
        Label mathLabel = new Label(mathml, ContentMode.XML);
        mainWindow.addComponent(mathLabel);
    }
}