Meta-data identifies the specifics of the coverage information, as well as the file versioning information.
{
meta: {
generator: 'vowsjs',
generated: 'Fri Aug 05 2011 22:45:56 GMT-0700 (PDT)',
env_with_src : function() { | |
var | |
html = "<html><body><p>hello world!</p></body></html>", | |
src = "window.attachedHere = 123"; | |
jsdom.env({ | |
html : html, | |
src : src, | |
done : function(errors, window) { | |
assertNull("error should not be null", errors); |
table { | |
width: 600px; | |
} | |
table thead tr th { | |
text-align: center; | |
font-weight: bold; | |
} | |
table tbody tr:nth-child(odd) { | |
background-color: #fff; | |
} |
node::Buffer *slowBuffer = node::Buffer::New(len); | |
memcpy(node::Buffer::Data(slowBuffer), get, len); | |
v8::Local<v8::Object> globalObj = v8::Context::GetCurrent()->Global(); | |
v8::Local<v8::Function> bufferConstructor = v8::Local<v8::Function>::Cast(globalObj->Get(v8::String::New("Buffer"))); | |
v8::Handle<v8::Value> constructorArgs[3] = { slowBuffer->handle_, v8::Integer::New(len), v8::Integer::New(0) }; | |
v8::Local<v8::Object> actualBuffer = bufferConstructor->NewInstance(3, constructorArgs); | |
return scope.Close(actualBuffer); |
var url = require('url'); | |
var http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
var parsed = url.parse(req.url, true); | |
var pathname = parsed.pathname; | |
res.end('Hello World, you asked for: ' + pathname + '\n'); | |
}).listen(1337, "127.0.0.1"); |
webserver: webserver.c libuv/uv.a http-parser/http_parser.o | |
gcc -I libuv/include \ | |
-lrt -lm -lpthread -o \ | |
webserver webserver.c \ | |
libuv/uv.a http-parser/http_parser.o | |
libuv/uv.a: | |
$(MAKE) -C libuv | |
http-parser/http_parser.o: |
jerry@Jerrys-MacBook-Air:~/work/node/eventreactor$ make test | |
✓ exports version number | |
✓ has event | |
✓ subscribe to every given event | |
✓ capture non listening events | |
✓ multiple event listeners | |
✓ idle fires callback |
/*jslint browser: true, nomen: true */ | |
/*global jQuery, console */ | |
(function ($) { | |
'use strict'; | |
var timer, timer_delay = 250, next_id = 0, selectors = {}; | |
/** | |
* Keep checking the DOM for new selectors | |
*/ |
// vows requires access to the module in order to create exports | |
vows(module, { | |
'vows/subject test 1': { | |
'Should add and execute the first test': { | |
topic: function() { | |
return true; | |
}, | |
'Validate the first time': function (testValue) { | |
assert.ok(testValue); | |
}, |
These instructions should be deprecated at this point. | |
Start following https://github.com/TooTallNate/node/tree/pi for a more straightforward node installation on the pi. | |
---- | |
These instructions work for the Raspberry Pi running Raspbian (hard float), and include a working NPM: | |
1. Install Raspbian - http://www.raspbian.org/PiscesImages |