more warmup in performance XmlEditorTest

This commit is contained in:
peter
2017-03-24 13:33:58 +01:00
parent ce7a0a7a32
commit 0543b3b47b
2 changed files with 6 additions and 2 deletions
@@ -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"/>