Skip to content

Commit

Permalink
Tests refactor, renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlopez committed Sep 20, 2014
1 parent a2aff40 commit 9786295
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 33 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -12,7 +12,7 @@
, "dependencies": {
}
, "devDependencies": {
"simpleunit": "0.0.5",
"simpleunit": "0.0.6",
"ajtalkjs-ajunit": "*"
}
}
File renamed without changes.
33 changes: 30 additions & 3 deletions test/load.js
@@ -1,10 +1,37 @@

var ajtalk = require('..'),
path = require('path');
var ajtalk = require('../lib/ajtalk');
var Smalltalk = ajtalk.Smalltalk;
var path = require('path');

exports['Load relative file'] = function (test) {
var filename = path.join(__dirname, 'files', 'Load.st');
ajtalk.load(filename);

test.ok(ajtalk.Smalltalk.HtmlHelloPage);
}
}

exports['Load Squeak Object'] = function(test) {
ajtalk.load(__dirname + '/../squeak/Object.st');

test.ok(Smalltalk.Object);
};

exports['Load Pharo Point'] = function(test) {
ajtalk.load(__dirname + '/../pharo/Point.st');

test.ok(Smalltalk.Point);
};

exports['Load Pharo Rectangle'] = function(test) {
ajtalk.load(__dirname + '/../pharo/Rectangle.st');

test.ok(Smalltalk.Point);
};

exports['Load Pharo Kernel Objects'] = function(test) {
ajtalk.load(__dirname + '/../pharo/KernelObjects.st');

test.ok(Smalltalk.ProtoObject);
test.ok(Smalltalk.Object);
test.ok(Smalltalk.Boolean);
};
File renamed without changes.
File renamed without changes.
29 changes: 0 additions & 29 deletions test/test-load.js

This file was deleted.

0 comments on commit 9786295

Please sign in to comment.