blob: e14ca5f19634a7b7d27533637d89501b3dc9bcb3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.text.tests.performance;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.eclipse.jface.text.source.AnnotationPainter;
/**
* Counts number of repaints (
* {@link AnnotationPainter#paintControl(org.eclipse.swt.events.PaintEvent)}) when typing on a line
* with annotations shown as squiggles in the text editor.
*
* @since 3.1
* @deprecated since INVOCATION_COUNT dimension is no longer supported.
*/
@Deprecated
public class TextTypingInvocationCountTest extends TypingInvocationCountTest {
private static class Setup extends TypingInvocationCountTest.Setup {
public Setup(Test test) {
super(test);
}
@Override
protected String getEditorId() {
return EditorTestHelper.TEXT_EDITOR_ID;
}
@Override
protected String getPerspectiveId() {
return EditorTestHelper.RESOURCE_PERSPECTIVE_ID;
}
}
private static final Class<TypingInvocationCountTest> THIS= TypingInvocationCountTest.class;
public TextTypingInvocationCountTest() {
super();
}
public TextTypingInvocationCountTest(String name) {
super(name);
}
public static Test suite() {
TestSuite suite= new TestSuite(THIS.getName());
suite.addTest(new TextTypingInvocationCountTest("test00"));
suite.addTest(new TextTypingInvocationCountTest("test01"));
suite.addTest(new TextTypingInvocationCountTest("test02"));
suite.addTest(new TextTypingInvocationCountTest("test03"));
suite.addTest(new TextTypingInvocationCountTest("test10"));
suite.addTest(new TextTypingInvocationCountTest("test11"));
suite.addTest(new TextTypingInvocationCountTest("test12"));
suite.addTest(new TextTypingInvocationCountTest("test13"));
return new Setup(suite);
}
}