Correspondingly rename xtest callback param

The first parameter is the error param after all.

The test logic is unchanged.
This commit is contained in:
An Ko 2014-11-03 16:01:05 +01:00
parent c67043f1ed
commit 6d76962bb2

View file

@ -35,8 +35,8 @@ var run_dpms_test = function(X, cb) {
};
var run_xtest_test = function(X, cb) {
X.require('xtest', function(ext) {
if (!util.isError(ext)) cb(true);
X.require('xtest', function(err) {
if (!util.isError(err)) cb(true);
else cb(false);
});
};