diff --git a/test/sdl/capture_sdl.js b/test/sdl/capture_sdl.js index 33cfe07..60e286b 100644 --- a/test/sdl/capture_sdl.js +++ b/test/sdl/capture_sdl.js @@ -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); diff --git a/test/web/util.js b/test/web/util.js index be7ae1a..3727492 100644 --- a/test/web/util.js +++ b/test/web/util.js @@ -5,6 +5,6 @@ const util = { ra.quit(); ensureImageMatch(filename, success); }}); - ra._display._hasDocumentBody = true; + ra.display._hasDocumentBody = true; } };