Age | Commit message (Collapse) | Author |
|
|
|
The readings no longer are passed to the event object
in the onchange() callback, but instead stored
as a internal property in the object itself in the
latest W3C spec.
Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
|
|
The default state is no longer "idle" and should be "unconnected",
also it should be a readonly property, and readings should also
be readonly as well
Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
|
|
This improves the basic syntax to:
var assert = require('Assert');
assert(true, "successful assertion");
assert(false, "failed assertion");
Also allow any "truthy" value to pass. If you explicitly want to check for
exact equality with true, then do:
assert(operation() === true, "perform operation");
Relax about argument types; equal can check non-object arguments. The
description argument can be a non-string or doesn't have to be given.
Swapped argument order in assert.throws() to match Node API.
Signed-off-by: Geoff Gustafson <geoff@linux.intel.com>
|
|
|
|
|
|
Fix for issue #434
Signed-off-by: Brian J Jones <brian.j.jones@intel.com>
|
|
Users can now import Javascript modules using
var myObj = require("modulename.js");
A sample is also included to demonstrate how this is done.
Signed-off-by: Brian J Jones <brian.j.jones@intel.com>
|