Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Commit

Permalink
Merge branch 'fix-nclosure-tests-namespace' of https://github.com/wim…
Browse files Browse the repository at this point in the history
…pyprogrammer/nclosure into wimpyprogrammer-fix-nclosure-tests-namespace

Conflicts:
	tests/runClosureLibraryJSUnitsManual.js
  • Loading branch information
gatapia committed Feb 23, 2015
2 parents 7984208 + 670a469 commit c54f646
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions tests/deps.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions tests/runClosureLibraryJSUnitsManual.js
Expand Up @@ -9,7 +9,7 @@ var ng_ = require('nclosure').nclosure();

goog.require('goog.testing.jsunit');

goog.require('nclosure.tests');
goog.require('nclosure.tests.utils');

var fs_ = require('fs');

Expand All @@ -25,7 +25,7 @@ var start = Date.now();
function setUpPage() {
// TODO: This assumes the nctest command is running in
// the nclosure directory.
allTestFiles = nclosure.tests.readDirRecursiveSync
allTestFiles = nclosure.tests.utils.readDirRecursiveSync
('third_party/closure-library/closure/goog/', '_test[\d\w_]*\.(html|js)');
if (maxTests > 0 && maxTests < allTestFiles.length)
allTestFiles = allTestFiles.slice(0, maxTests);
Expand Down Expand Up @@ -55,7 +55,7 @@ function testClousreTests() {

var commands = goog.array.map(allFilesInTmp,
function(f) { return 'nctest ' + ng_.getPath(tmpdir, f); });
nclosure.tests.paralleliseExecs(
nclosure.tests.utils.paralleliseExecs(
commands,runTestCallback_, onCompleted_, maxParallels);
});
};
Expand All @@ -66,8 +66,8 @@ function copyAndParseAllTestFiles(oncomplete) {
if (err) return oncomplete(err);
copyAndParseAllTestFilesImpl(oncomplete)
};
if (fs_.existsSync(tmpdir)) {
nclosure.tests.rmRfDir(tmpdir, function(err) {
if (path_.existsSync(tmpdir)) {
nclosure.tests.utils.rmRfDir(tmpdir, function(err) {
if (err) return oncomplete(err);
fs_.mkdir(tmpdir, 0777, impl);
});
Expand Down

0 comments on commit c54f646

Please sign in to comment.