~ubuntu-branches/ubuntu/natty/nodejs/natty

« back to all changes in this revision

Viewing changes to test/simple/test-file-write-stream.js

  • Committer: Bazaar Package Importer
  • Author(s): Jérémy Lal
  • Date: 2010-08-20 11:49:04 UTC
  • mfrom: (7.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100820114904-lz22w6fkth7yh179
Tags: 0.2.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
require('../common');
 
1
common = require("../common");
 
2
assert = common.assert
2
3
 
3
4
var
4
5
  path = require('path'),
5
6
  fs = require('fs'),
6
 
  fn = path.join(fixturesDir, "write.txt"),
 
7
  fn = path.join(common.fixturesDir, "write.txt"),
7
8
  file = fs.createWriteStream(fn),
8
9
 
9
10
  EXPECTED = '012345678910',