package com.vaadin.tests.tickets;

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

public class Ticket5952 extends LegacyApplication {

    @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);
    }
}
