From 742c07cf841f831e1c9bde3e116b1ce83626a7c0 Mon Sep 17 00:00:00 2001 From: Michael Martinez Date: Tue, 15 Sep 2015 17:30:53 -0500 Subject: [PATCH] updated test to use new API --- tests/driver-sel1-8bit.js | 2 +- tests/driver-sel1-rgb.js | 2 +- tests/driver-sel1.js | 2 +- tests/driver-sel2.js | 2 +- tests/driver-sel3.js | 2 +- tests/driver-sel4.js | 2 +- tests/driver-sel5.js | 2 +- tests/driver-sel6.js | 2 +- tests/driver-sel7.js | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/driver-sel1-8bit.js b/tests/driver-sel1-8bit.js index 0c55026..3062485 100644 --- a/tests/driver-sel1-8bit.js +++ b/tests/driver-sel1-8bit.js @@ -26,7 +26,7 @@ var jpegDataSize = 74137; var buf = fs.readFileSync('./tests/data/jpeg_lossless_sel1-8bit.dcm'); var data = toArrayBuffer(buf); var decoder = new jpeg.lossless.Decoder(); -var output = decoder.decode(data, jpegDataOffset, jpegDataSize); +var output = decoder.decompress(data, jpegDataOffset, jpegDataSize); var assert = require("assert"); describe('driver-sel1-8bit', function () { diff --git a/tests/driver-sel1-rgb.js b/tests/driver-sel1-rgb.js index a683bb9..d9eed5f 100644 --- a/tests/driver-sel1-rgb.js +++ b/tests/driver-sel1-rgb.js @@ -26,7 +26,7 @@ var jpegDataSize = 4682072; var buf = fs.readFileSync('./tests/data/jpeg_lossless_sel1-rgb.dcm'); var data = toArrayBuffer(buf); var decoder = new jpeg.lossless.Decoder(); -var output = decoder.decode(data, jpegDataOffset, jpegDataSize); +var output = decoder.decompress(data, jpegDataOffset, jpegDataSize); var assert = require("assert"); describe('driver-sel1-rgb', function () { diff --git a/tests/driver-sel1.js b/tests/driver-sel1.js index a3b574c..e4bef48 100644 --- a/tests/driver-sel1.js +++ b/tests/driver-sel1.js @@ -26,7 +26,7 @@ var jpegDataSize = 50675 - jpegDataOffset; var buf = fs.readFileSync('./tests/data/jpeg_lossless_sel1.dcm'); var data = toArrayBuffer(buf); var decoder = new jpeg.lossless.Decoder(); -var output = decoder.decode(data, jpegDataOffset, jpegDataSize); +var output = decoder.decompress(data, jpegDataOffset, jpegDataSize); var assert = require("assert"); describe('driver-sel1', function () { diff --git a/tests/driver-sel2.js b/tests/driver-sel2.js index 3b6db6d..7e6bad4 100644 --- a/tests/driver-sel2.js +++ b/tests/driver-sel2.js @@ -26,7 +26,7 @@ var jpegDataSize = 48267 - jpegDataOffset; var buf = fs.readFileSync('./tests/data/jpeg_lossless_sel2.dcm'); var data = toArrayBuffer(buf); var decoder = new jpeg.lossless.Decoder(); -var output = decoder.decode(data, jpegDataOffset, jpegDataSize); +var output = decoder.decompress(data, jpegDataOffset, jpegDataSize); var assert = require("assert"); describe('driver-sel2', function () { diff --git a/tests/driver-sel3.js b/tests/driver-sel3.js index d8e363a..e47e3b9 100644 --- a/tests/driver-sel3.js +++ b/tests/driver-sel3.js @@ -26,7 +26,7 @@ var jpegDataSize = 52185 - jpegDataOffset; var buf = fs.readFileSync('./tests/data/jpeg_lossless_sel3.dcm'); var data = toArrayBuffer(buf); var decoder = new jpeg.lossless.Decoder(); -var output = decoder.decode(data, jpegDataOffset, jpegDataSize); +var output = decoder.decompress(data, jpegDataOffset, jpegDataSize); var assert = require("assert"); describe('driver-sel3', function () { diff --git a/tests/driver-sel4.js b/tests/driver-sel4.js index 89f6916..18f0e2a 100644 --- a/tests/driver-sel4.js +++ b/tests/driver-sel4.js @@ -26,7 +26,7 @@ var jpegDataSize = 48118 - jpegDataOffset; var buf = fs.readFileSync('./tests/data/jpeg_lossless_sel4.dcm'); var data = toArrayBuffer(buf); var decoder = new jpeg.lossless.Decoder(); -var output = decoder.decode(data, jpegDataOffset, jpegDataSize); +var output = decoder.decompress(data, jpegDataOffset, jpegDataSize); var assert = require("assert"); describe('driver-sel4', function () { diff --git a/tests/driver-sel5.js b/tests/driver-sel5.js index fc40d3a..4d2b430 100644 --- a/tests/driver-sel5.js +++ b/tests/driver-sel5.js @@ -26,7 +26,7 @@ var jpegDataSize = 47747 - jpegDataOffset; var buf = fs.readFileSync('./tests/data/jpeg_lossless_sel5.dcm'); var data = toArrayBuffer(buf); var decoder = new jpeg.lossless.Decoder(); -var output = decoder.decode(data, jpegDataOffset, jpegDataSize); +var output = decoder.decompress(data, jpegDataOffset, jpegDataSize); var assert = require("assert"); describe('driver-sel5', function () { diff --git a/tests/driver-sel6.js b/tests/driver-sel6.js index 11924ca..31490f1 100644 --- a/tests/driver-sel6.js +++ b/tests/driver-sel6.js @@ -26,7 +26,7 @@ var jpegDataSize = 46642 - jpegDataOffset; var buf = fs.readFileSync('./tests/data/jpeg_lossless_sel6.dcm'); var data = toArrayBuffer(buf); var decoder = new jpeg.lossless.Decoder(); -var output = decoder.decode(data, jpegDataOffset, jpegDataSize); +var output = decoder.decompress(data, jpegDataOffset, jpegDataSize); var assert = require("assert"); describe('driver-sel6', function () { diff --git a/tests/driver-sel7.js b/tests/driver-sel7.js index 2fd6d61..49c9ae7 100644 --- a/tests/driver-sel7.js +++ b/tests/driver-sel7.js @@ -26,7 +26,7 @@ var jpegDataSize = 46796 - jpegDataOffset; var buf = fs.readFileSync('./tests/data/jpeg_lossless_sel7.dcm'); var data = toArrayBuffer(buf); var decoder = new jpeg.lossless.Decoder(); -var output = decoder.decode(data, jpegDataOffset, jpegDataSize); +var output = decoder.decompress(data, jpegDataOffset, jpegDataSize); var assert = require("assert"); describe('driver-sel7', function () {