aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/main/java/com/vaadin/tests/debug/ProfilerZeroOverhead.java
blob: e3deb43dacd0094d9293888badadfb11e0d719b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.vaadin.tests.debug;

import com.vaadin.annotations.Widgetset;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractReindeerTestUI;
import com.vaadin.tests.widgetset.TestingWidgetSet;
import com.vaadin.tests.widgetset.client.ProfilerCompilationCanary;
import com.vaadin.tests.widgetset.server.TestWidgetComponent;

@Widgetset(TestingWidgetSet.NAME)
public class ProfilerZeroOverhead extends AbstractReindeerTestUI {

    @Override
    protected void setup(VaadinRequest request) {
        addComponent(new TestWidgetComponent(ProfilerCompilationCanary.class));
    }

    @Override
    protected String getTestDescription() {
        return "Test UI for verifying that Profiler.isEnabled() causes no side effects in generated javascript";
    }
}