Permalink
Browse files

fixed tests

  • Loading branch information...
1 parent 286397c commit c0bbd211177aef8ec1b36bc280d59eed958c0eb4 @tmpvar committed Apr 6, 2010
Showing with 8 additions and 9 deletions.
  1. +5 −2 lib/carena.js
  2. +1 −2 test/node.js
  3. +2 −5 wscript
View
@@ -33,6 +33,9 @@ var carena =
_id = nodeId++;
var dirty = function() {
+ if (_self.parent && _self.parent !== _self) {
+ _self.parent.dirty = true;
+ }
_dirty = true;
};
@@ -90,7 +93,7 @@ var carena =
});
_self.__defineGetter__('dirty', function() { return _dirty; });
-
+ _self.__defineSetter__('dirty', dirty);
_self.add = function(child) {
// parent call needs to make dirty.
child.parent = _self;
@@ -124,7 +127,7 @@ var carena =
node.prototype = {};
- ret = { node : node};
+ var ret = { node : node};
if (isNode) {
exports.carena = ret;
}
View
@@ -1,6 +1,5 @@
-var carena = require("../lib/carena");
var sys = require("sys");
-
+var carena = require("../lib/carena").carena;
var tests = [], pass = 0, fail = 0;
var ok = function(logic, failmsg)
View
@@ -4,8 +4,5 @@ import os
VERSION = '0.0.1'
def test(ctx):
- out = os.popen('node test/node.js').read();
- fp = open("test/status.json", "w+");
- fp.write(out);
- fp.close();
-
+ print os.popen('node test/node.js').read();
+

0 comments on commit c0bbd21

Please sign in to comment.