diff options
author | Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> | 2023-06-11 17:00:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-11 17:00:53 -0400 |
commit | 10851a1ddaea3e1111ea9f50afba1ff993a0967b (patch) | |
tree | 9792df118f580afb5988a607ce048244455be2c5 /test/java-tests.ts | |
parent | 79bba4c1d1031fa250919539e7681cfcba250b7a (diff) | |
download | compiler-explorer-10851a1ddaea3e1111ea9f50afba1ff993a0967b.tar.gz compiler-explorer-10851a1ddaea3e1111ea9f50afba1ff993a0967b.zip |
LLVM IR pane improvements (#5078)gh-7669
This PR will add filtering and other output options to the LLVM IR pane


Closes #5062
Related to #5045
Diffstat (limited to 'test/java-tests.ts')
-rw-r--r-- | test/java-tests.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/java-tests.ts b/test/java-tests.ts index 1d9f444c2..21d049114 100644 --- a/test/java-tests.ts +++ b/test/java-tests.ts @@ -113,7 +113,7 @@ describe('javap parsing', () => { compiler = new JavaCompiler(info, env); }); - function testJava(baseFolder: string, ...classNames: string[]) { + async function testJava(baseFolder: string, ...classNames: string[]) { const compiler = new JavaCompiler(info, env); const asm = classNames.map(className => { @@ -142,18 +142,18 @@ describe('javap parsing', () => { asm, }; - const processed = compiler.processAsm(result); + const processed = await compiler.processAsm(result); processed.should.have.property('asm'); const asmSegments = (processed as {asm: ParsedAsmResultLine[]}).asm; asmSegments.should.deep.equal(expectedSegments); } - it('should handle errors', () => { + it('should handle errors', async () => { const result = { asm: '<Compilation failed>', }; - compiler.processAsm(result).should.deep.equal([{text: '<Compilation failed>', source: null}]); + (await compiler.processAsm(result)).should.deep.equal([{text: '<Compilation failed>', source: null}]); }); it('Parses simple class with one method', () => { |