Skip to content

Commit

Permalink
added test for awt
Browse files Browse the repository at this point in the history
  • Loading branch information
joeferner committed Feb 9, 2012
1 parent 3238761 commit 40f2376
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/awt-test.js
@@ -0,0 +1,15 @@

var java = require("./testHelpers").java;

var nodeunit = require("nodeunit");
var util = require("util");
var path = require('path');

exports['AWT'] = nodeunit.testCase({
"calling AWT method (see issue 1)": function(test) {
var filename = path.join(path.dirname(__filename), "nodejs.png");
var file = java.newInstanceSync("java.io.File", filename);
var image = java.callStaticMethodSync("javax.imageio.ImageIO", "read", file);
test.done();
}
});
Binary file added test/nodejs.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 40f2376

Please sign in to comment.