Browse Source

Remove process.mixin dependency from all tests.

v0.7.4-release
isaacs 15 years ago
committed by Ryan Dahl
parent
commit
5861db8a69
  1. 6
      test/common.js
  2. 2
      test/disabled/test-cat.js
  3. 2
      test/disabled/test-dns.js
  4. 2
      test/disabled/test-eio-race3.js
  5. 2
      test/disabled/test-fs-sendfile.js
  6. 2
      test/disabled/test-http-stress.js
  7. 2
      test/fixtures/echo.js
  8. 2
      test/fixtures/print-chars.js
  9. 2
      test/pummel/test-http-client-reconnect-bug.js
  10. 2
      test/pummel/test-keep-alive.js
  11. 2
      test/pummel/test-multipart.js
  12. 2
      test/pummel/test-process-spawn-loop.js
  13. 2
      test/pummel/test-tcp-many-clients.js
  14. 2
      test/pummel/test-tcp-pause.js
  15. 2
      test/pummel/test-tcp-pingpong-delay.js
  16. 2
      test/pummel/test-tcp-pingpong.js
  17. 2
      test/pummel/test-tcp-throttle.js
  18. 2
      test/pummel/test-tcp-timeout.js
  19. 2
      test/pummel/test-tcp-tls.js
  20. 2
      test/pummel/test-timers.js
  21. 2
      test/pummel/test-watch-file.js
  22. 2
      test/simple/test-assert.js
  23. 2
      test/simple/test-byte-length.js
  24. 2
      test/simple/test-chdir.js
  25. 2
      test/simple/test-child-process-env.js
  26. 2
      test/simple/test-delayed-require.js
  27. 2
      test/simple/test-eio-race.js
  28. 2
      test/simple/test-eio-race2.js
  29. 2
      test/simple/test-eio-race4.js
  30. 2
      test/simple/test-event-emitter-add-listeners.js
  31. 2
      test/simple/test-event-emitter-modify-in-emit.js
  32. 2
      test/simple/test-exception-handler.js
  33. 2
      test/simple/test-exec.js
  34. 2
      test/simple/test-file-read-noexist.js
  35. 2
      test/simple/test-file-read-stream.js
  36. 2
      test/simple/test-file-write-stream.js
  37. 2
      test/simple/test-fs-chmod.js
  38. 2
      test/simple/test-fs-realpath.js
  39. 2
      test/simple/test-fs-stat.js
  40. 2
      test/simple/test-fs-symlink.js
  41. 2
      test/simple/test-fs-write.js
  42. 2
      test/simple/test-http-1.0.js
  43. 2
      test/simple/test-http-cat.js
  44. 2
      test/simple/test-http-chunked.js
  45. 2
      test/simple/test-http-client-race.js
  46. 2
      test/simple/test-http-client-upload.js
  47. 2
      test/simple/test-http-eof-on-connect.js
  48. 2
      test/simple/test-http-malformed-request.js
  49. 2
      test/simple/test-http-proxy.js
  50. 2
      test/simple/test-http-server.js
  51. 2
      test/simple/test-http-tls.js
  52. 2
      test/simple/test-http-wget.js
  53. 2
      test/simple/test-http.js
  54. 2
      test/simple/test-idle-watcher.js
  55. 2
      test/simple/test-ini.js
  56. 2
      test/simple/test-memory-usage.js
  57. 2
      test/simple/test-mkdir-rmdir.js
  58. 2
      test/simple/test-module-loading.js
  59. 2
      test/simple/test-next-tick.js
  60. 2
      test/simple/test-path.js
  61. 2
      test/simple/test-process-buffering.js
  62. 2
      test/simple/test-process-kill.js
  63. 2
      test/simple/test-process-mixin.js
  64. 2
      test/simple/test-process-simple.js
  65. 2
      test/simple/test-querystring.js
  66. 2
      test/simple/test-readdir.js
  67. 2
      test/simple/test-remote-module-loading.js
  68. 2
      test/simple/test-signal-handler.js
  69. 2
      test/simple/test-stdio.js
  70. 2
      test/simple/test-stdout-flush.js
  71. 2
      test/simple/test-sync-fileread.js
  72. 3
      test/simple/test-sys.js
  73. 2
      test/simple/test-tcp-binary.js
  74. 2
      test/simple/test-tcp-reconnect.js
  75. 2
      test/simple/test-umask.js
  76. 2
      test/simple/test-url.js
  77. 2
      test/simple/test-utf8-scripts.js

6
test/common.js

@ -1,5 +1,7 @@
var path = require("path");
exports = module.exports = global;
exports.testDir = path.dirname(__filename);
exports.fixturesDir = path.join(exports.testDir, "fixtures");
exports.libDir = path.join(exports.testDir, "../lib");
@ -7,8 +9,6 @@ exports.PORT = 12346;
require.paths.unshift(exports.libDir);
var assert = require('assert');
var sys = require("sys");
process.mixin(exports, sys);
for (var i in sys) exports[i] = sys[i];
exports.assert = require('assert');

2
test/disabled/test-cat.js

@ -1,4 +1,4 @@
process.mixin(require("../common.js"));
require("../common.js");
http = require("/http.js");
puts("hello world");

2
test/disabled/test-dns.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var dns = require("dns"),
sys = require("sys");

2
test/disabled/test-eio-race3.js

@ -1,6 +1,6 @@
/* XXX Can this test be modified to not call the now-removed wait()? */
process.mixin(require("../common"));
require("../common");
puts('first stat ...');

2
test/disabled/test-fs-sendfile.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
tcp = require("tcp");
sys = require("sys");

2
test/disabled/test-http-stress.js

@ -1,4 +1,4 @@
process.mixin(require('../common.js'));
require("../common");
var request_count = 1000;
var response_body = '{"ok": true}';

2
test/fixtures/echo.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
process.stdio.open();
print("hello world\r\n");

2
test/fixtures/print-chars.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var n = parseInt(process.argv[2]);

2
test/pummel/test-http-client-reconnect-bug.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var tcp = require("tcp"),
sys = require("sys"),

2
test/pummel/test-keep-alive.js

@ -1,5 +1,5 @@
// This test requires the program "ab"
process.mixin(require("../common"));
require("../common");
http = require("http");
sys = require("sys");

2
test/pummel/test-multipart.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var http = require("http"),
multipart = require("multipart"),

2
test/pummel/test-process-spawn-loop.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var N = 40;
var finished = false;

2
test/pummel/test-tcp-many-clients.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
tcp = require("tcp");
// settings
var bytes = 1024*40;

2
test/pummel/test-tcp-pause.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
tcp = require("tcp");
N = 200;

2
test/pummel/test-tcp-pingpong-delay.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
tcp = require("tcp");

2
test/pummel/test-tcp-pingpong.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
tcp = require("tcp");
var tests_run = 0;

2
test/pummel/test-tcp-throttle.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
tcp = require("tcp");
N = 60*1024; // 30kb

2
test/pummel/test-tcp-timeout.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
tcp = require("tcp");
exchanges = 0;
starttime = null;

2
test/pummel/test-tcp-tls.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
tcp = require("tcp");
fs=require("fs");

2
test/pummel/test-timers.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var WINDOW = 200; // why is does this need to be so big?

2
test/pummel/test-watch-file.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var fs = require("fs");
var path = require("path");

2
test/simple/test-assert.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var a = require('assert');

2
test/simple/test-byte-length.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
assert.equal(14, process._byteLength("Il était tué"));
assert.equal(14, process._byteLength("Il était tué", "utf8"));

2
test/simple/test-chdir.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
assert.equal(true, process.cwd() !== __dirname);

2
test/simple/test-child-process-env.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
child = process.createChildProcess('/usr/bin/env', [], {'HELLO' : 'WORLD'});
response = "";

2
test/simple/test-delayed-require.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
setTimeout(function () {
a = require("../fixtures/a");

2
test/simple/test-eio-race.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var count = 100;
var fs = require('fs');

2
test/simple/test-eio-race2.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var path = require('path');
var testTxt = path.join(fixturesDir, "x.txt");
var fs = require('fs');

2
test/simple/test-eio-race4.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var fs = require('fs');
var N = 100;
var j = 0;

2
test/simple/test-event-emitter-add-listeners.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var events = require('events');
var e = new events.EventEmitter();

2
test/simple/test-event-emitter-modify-in-emit.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var events = require('events');
var callbacks_called = [ ];

2
test/simple/test-exception-handler.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var MESSAGE = 'catch me if you can';
var caughtException = false;

2
test/simple/test-exec.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
success_count = 0;
error_count = 0;

2
test/simple/test-file-read-noexist.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var path = require('path');
var fs = require('fs');
var got_error = false;

2
test/simple/test-file-read-stream.js

@ -1,4 +1,4 @@
process.mixin(require('../common'));
require('../common');
var
path = require('path'),

2
test/simple/test-file-write-stream.js

@ -1,4 +1,4 @@
process.mixin(require('../common'));
require('../common');
var
path = require('path'),

2
test/simple/test-fs-chmod.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var path = require('path');
var fs = require('fs');
var got_error = false;

2
test/simple/test-fs-realpath.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var fs = require('fs');
var path = require('path');
var async_completed = 0, async_expected = 0, unlink = [];

2
test/simple/test-fs-stat.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var fs = require('fs');
var got_error = false;
var success_count = 0;

2
test/simple/test-fs-symlink.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var path = require('path');
var fs = require('fs');
var completed = 0;

2
test/simple/test-fs-write.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var path = require('path');
var fs = require('fs');
var fn = path.join(fixturesDir, "write.txt");

2
test/simple/test-http-1.0.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
tcp = require("tcp");
http = require("http");

2
test/simple/test-http-cat.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
http = require("http");
var body = "exports.A = function() { return 'A';}";

2
test/simple/test-http-chunked.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var http = require("http");
var UTF8_STRING = "Il était tué";

2
test/simple/test-http-client-race.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
http = require("http");
url = require("url");

2
test/simple/test-http-client-upload.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
http = require("http");
var sent_body = "";

2
test/simple/test-http-eof-on-connect.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
tcp = require("tcp");
http = require("http");

2
test/simple/test-http-malformed-request.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
tcp = require("tcp");
http = require("http");
url = require("url");

2
test/simple/test-http-proxy.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
http = require("http");
url = require("url");

2
test/simple/test-http-server.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
tcp = require("tcp");
http = require("http");
url = require("url");

2
test/simple/test-http-tls.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var http = require("http");
var url = require("url");
var fs = require('fs');

2
test/simple/test-http-wget.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
tcp = require("tcp");
http = require("http");

2
test/simple/test-http.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
http = require("http");
url = require("url");

2
test/simple/test-idle-watcher.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var complete = false;
var idle = new process.IdleWatcher();

2
test/simple/test-ini.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var path = require('path');
var fs = require("fs");
parse = require("ini").parse;

2
test/simple/test-memory-usage.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var r = process.memoryUsage();
puts(inspect(r));

2
test/simple/test-mkdir-rmdir.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var path = require('path');
var fs = require('fs');

2
test/simple/test-module-loading.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var path = require('path');
debug("load test-module-loading.js");

2
test/simple/test-next-tick.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var complete = 0;

2
test/simple/test-path.js

@ -1,5 +1,5 @@
var path = require("path");
process.mixin(require("../common"));
require("../common");
var f = __filename;

2
test/simple/test-process-buffering.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var pwd_called = false;

2
test/simple/test-process-kill.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var exit_status = -1;

2
test/simple/test-process-mixin.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var target = function() {};
process.mixin(target, {

2
test/simple/test-process-simple.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var cat = process.createChildProcess("cat");

2
test/simple/test-querystring.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
// test using assert

2
test/simple/test-readdir.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var path = require('path');
var fs = require('fs');

2
test/simple/test-remote-module-loading.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var http = require('http');
var sys = require('sys');

2
test/simple/test-signal-handler.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
puts("process.pid: " + process.pid);

2
test/simple/test-stdio.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var path = require('path');
var sub = path.join(fixturesDir, 'echo.js');

2
test/simple/test-stdout-flush.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var path = require('path');
var sub = path.join(fixturesDir, 'print-chars.js');

2
test/simple/test-sync-fileread.js

@ -1,4 +1,4 @@
process.mixin(require('../common'));
require('../common');
var path = require('path');
var fs = require('fs');

3
test/simple/test-sys.js

@ -1,5 +1,4 @@
process.mixin(require("../common"));
process.mixin(require("sys"));
require("../common");
assert.equal("0", inspect(0));
assert.equal("1", inspect(1));

2
test/simple/test-tcp-binary.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
tcp = require("tcp");
binaryString = "";

2
test/simple/test-tcp-reconnect.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
tcp = require("tcp");
var N = 50;

2
test/simple/test-umask.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var mask = 0664;
var old = process.umask(mask);

2
test/simple/test-url.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
var url = require("url"),
sys = require("sys");

2
test/simple/test-utf8-scripts.js

@ -1,4 +1,4 @@
process.mixin(require("../common"));
require("../common");
// üäö

Loading…
Cancel
Save