Skip to content

Commit

Permalink
updated test to use new API
Browse files Browse the repository at this point in the history
  • Loading branch information
rii-mango committed Sep 15, 2015
1 parent a9121eb commit 742c07c
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/driver-sel1-8bit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion tests/driver-sel1-rgb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion tests/driver-sel1.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion tests/driver-sel2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion tests/driver-sel3.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion tests/driver-sel4.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion tests/driver-sel5.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion tests/driver-sel6.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion tests/driver-sel7.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 742c07c

Please sign in to comment.