Permalink
Browse files

fixed full-frame tests by converting all rgba buffers to rgb

  • Loading branch information...
1 parent 772a2c0 commit a9edd417eeebc7cccd94bb88a0788da4a30b851e @pkrumins committed Jul 12, 2010
Showing with 2 additions and 1 deletion.
  1. BIN tests/full-frames/terminals.tar.bz2
  2. +2 −1 tests/full-frames/tovideo.js
View
BIN tests/full-frames/terminals.tar.bz2
Binary file not shown.
View
3 tests/full-frames/tovideo.js
@@ -3,7 +3,7 @@ var Buffer = require('buffer').Buffer;
var fs = require('fs');
var sys = require('sys');
-var fileRx = new RegExp(/^terminal-(\d+).rgba/);
+var fileRx = new RegExp(/^terminal-(\d+).rgb$/);
var files = fs.readdirSync('.').sort().filter(
function (f) { return fileRx.test(f) }
@@ -18,6 +18,7 @@ fixedVideo.setOutputFile('video.ogv');
var buf = new Buffer(1152000);
files.forEach(function (file) {
+ sys.log(file);
var terminal = fs.readFileSync(file, 'binary');
buf.write(terminal, 'binary');
fixedVideo.newFrame(buf);

0 comments on commit a9edd41

Please sign in to comment.