diff options
author | isaacs <i@izs.me> | 2013-05-22 11:42:38 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-05-22 11:46:52 -0700 |
commit | 52adc0d96309f9e04cbb220d63206e32b8309081 (patch) | |
tree | b3182c31907acc5e14a60f75089d1768f7b68ab6 /test | |
parent | 896b2aa7074fc886efd7dd0a397d694763cac7ce (diff) | |
download | android-node-v8-52adc0d96309f9e04cbb220d63206e32b8309081.tar.gz android-node-v8-52adc0d96309f9e04cbb220d63206e32b8309081.tar.bz2 android-node-v8-52adc0d96309f9e04cbb220d63206e32b8309081.zip |
test: Fix test-deprecation-flags
Test typos missed in util deprecation commit
Diffstat (limited to 'test')
-rw-r--r-- | test/fixtures/echo.js | 2 | ||||
-rw-r--r-- | test/simple/test-deprecation-flags.js | 2 | ||||
-rw-r--r-- | test/simple/test-util-debug.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/fixtures/echo.js b/test/fixtures/echo.js index e5fc06b99c..abfdb32948 100644 --- a/test/fixtures/echo.js +++ b/test/fixtures/echo.js @@ -22,7 +22,7 @@ var common = require('../common'); var assert = require('assert'); -common.print('hello world\r\n'); +process.stdout.write('hello world\r\n'); var stdin = process.openStdin(); diff --git a/test/simple/test-deprecation-flags.js b/test/simple/test-deprecation-flags.js index 71e43d8ddb..3d50c097f6 100644 --- a/test/simple/test-deprecation-flags.js +++ b/test/simple/test-deprecation-flags.js @@ -51,7 +51,7 @@ execFile(node, traceDep, function(er, stdout, stderr) { assert.equal(stdout, ''); var stack = stderr.trim().split('\n'); // just check the top and bottom. - assert.equal(stack[0], 'Trace: util.p: Use console.error() instead.'); + assert.equal(stack[0], 'Trace: util.p: Use console.error() instead'); assert.equal(stack.pop(), '\'This is deprecated\''); console.log('trace ok'); }); diff --git a/test/simple/test-util-debug.js b/test/simple/test-util-debug.js index 1506e1af80..6d9c28a95a 100644 --- a/test/simple/test-util-debug.js +++ b/test/simple/test-util-debug.js @@ -80,7 +80,7 @@ function test(environ, shouldWrite) { function child() { var util = require('util'); - var debug = util.debug('tud'); + var debug = util.debuglog('tud'); debug('this', { is: 'a' }, /debugging/); debug('number=%d string=%s obj=%j', 1234, 'asdf', { foo: 'bar' }); console.log('ok'); |