Browse files

added test for awt

  • Loading branch information...
1 parent 3238761 commit 40f23766f71bdef4ffcd35c485e5eaf27015c0f0 @joeferner committed Feb 9, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 test/awt-test.js
  2. BIN test/nodejs.png
View
15 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();
+ }
+});
View
BIN 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.