aboutsummaryrefslogtreecommitdiff
path: root/test/java-tests.ts
diff options
context:
space:
mode:
authorJeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com>2023-06-11 17:00:53 -0400
committerGitHub <noreply@github.com>2023-06-11 17:00:53 -0400
commit10851a1ddaea3e1111ea9f50afba1ff993a0967b (patch)
tree9792df118f580afb5988a607ce048244455be2c5 /test/java-tests.ts
parent79bba4c1d1031fa250919539e7681cfcba250b7a (diff)
downloadcompiler-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 ![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/ffc865ea-b3fa-441f-b501-4ec4b68e261f) ![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/936be326-b55e-40cd-ba47-22b121c1acfb) Closes #5062 Related to #5045
Diffstat (limited to 'test/java-tests.ts')
-rw-r--r--test/java-tests.ts8
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', () => {