Skip to content

Commit

Permalink
Fix web and sdl tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dustmop committed Apr 6, 2023
1 parent 0f22dcc commit 5e29fa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/sdl/capture_sdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ describe('SDL', function() {
it('capture from window', function() {
ra.resetState();
let buff = new Uint8Array(16384);
if (ra._display.name() != 'sdl') {
if (ra.display.name() != 'sdl') {
console.log(`
[ERROR]: This test will only pass if raster.js's native
add-on is built with SDL support!
`);
}
ra._display.insteadWriteBuffer(buff);
ra.display.insteadWriteBuffer(buff);

ra.setZoom(4);
ra.setGrid(2);
Expand Down
2 changes: 1 addition & 1 deletion test/web/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const util = {
ra.quit();
ensureImageMatch(filename, success);
}});
ra._display._hasDocumentBody = true;
ra.display._hasDocumentBody = true;
}
};

0 comments on commit 5e29fa0

Please sign in to comment.