mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Prepare for restart check in all lexer tests
Don't use `LexerTestCase.doTest(String, String, Lexer)` without need GitOrigin-RevId: b15679a15e28e3f67dba0149dfa075913f35fe4b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c200315703
commit
0f2b5b5b77
@@ -27,7 +27,7 @@ abstract class LexerTestCaseBase : LexerTestCase(), TestCase {
|
||||
|
||||
// NOTE(matkad): this is basically a copy-paste of doFileTest.
|
||||
// The only difference is that encoding is set to utf-8
|
||||
protected fun doTest(lexer: Lexer = createLexer()) {
|
||||
protected fun doTest() {
|
||||
val filePath = pathToSourceTestFile()
|
||||
var text = ""
|
||||
try {
|
||||
@@ -36,7 +36,7 @@ abstract class LexerTestCaseBase : LexerTestCase(), TestCase {
|
||||
} catch (e: IOException) {
|
||||
fail("can't load file " + filePath + ": " + e.message)
|
||||
}
|
||||
doTest(text, null, lexer)
|
||||
doTest(text, null)
|
||||
}
|
||||
|
||||
override fun doTest(@NonNls text: String, expected: String?, lexer: Lexer) {
|
||||
|
||||
Reference in New Issue
Block a user