mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
more warmup in performance XmlEditorTest
This commit is contained in:
@@ -34,12 +34,14 @@ public class XmlEditorTest extends LightCodeInsightTestCase {
|
||||
|
||||
public void testEnterPerformance() throws Exception {
|
||||
configureByFile(getTestFilePath(true));
|
||||
EditorTestUtil.performTypingAction(myEditor, '\n');
|
||||
for (int i = 0; i < 3; i++) {
|
||||
EditorTestUtil.performTypingAction(myEditor, '\n');
|
||||
}
|
||||
PlatformTestUtil.startPerformanceTest("Xml editor enter", 7500, () -> {
|
||||
for (int i = 0; i < 3; i ++) {
|
||||
EditorTestUtil.performTypingAction(myEditor, '\n');
|
||||
}
|
||||
}).cpuBound().assertTiming();
|
||||
}).cpuBound().attempts(1).assertTiming();
|
||||
checkResultByFile(getTestFilePath(false));
|
||||
}
|
||||
|
||||
|
||||
@@ -19829,6 +19829,8 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<caret>
|
||||
<string name="script" value=""/>
|
||||
<int name="flags" value="0"/>
|
||||
|
||||
Reference in New Issue
Block a user