Andrew Stewart
691547a97f
Add specs for Cylon#findRobotDevice
2014-03-09 18:56:42 -07:00
Andrew Stewart
263a1e5024
Start on improved Cylon specs
2014-03-07 16:52:51 -08:00
Andrew Stewart
5120c35f7c
Provide backing variables instead of functions
2014-03-04 16:10:49 -08:00
Andrew Stewart
20a67ef590
Add and improve Robot tests
2014-03-04 13:03:31 -08:00
Andrew Stewart
707703cae2
Improve Device specs
2014-03-03 13:54:33 -08:00
Andrew Stewart
a88fe526f4
Add tests for Connection#data
2014-03-03 12:24:29 -08:00
Andrew Stewart
d9ef9046e9
Add specs for #data method
2014-02-28 20:27:05 -08:00
Andrew Stewart
f307aad0cd
Add global.bind method and tests
2014-02-28 10:31:10 -08:00
Andrew Stewart
84916f69e3
Add shortcut for defining adaptor/driver events
2014-02-27 21:17:44 -08:00
Andrew Stewart
473e0ab08f
Remove 'source loading:' log messages from tests
...
Not really necessary now that we have actual tracebacks.
2014-02-27 20:59:21 -08:00
Andrew Stewart
84f06afa5b
Add specs for event proxying
2014-02-27 18:13:21 -08:00
Andrew Stewart
c70ed66b77
Clean up Basestar specs
2014-02-27 17:43:34 -08:00
Andrew Stewart
cdd3f3310a
Remove trailing whitespace
2014-02-27 17:39:02 -08:00
deadprogram
9ef38a6a02
Remove vestigal CoffeeScript tests
2014-02-27 14:53:36 -08:00
deadprogram
32f6a592ad
Refactor remaining tests
2014-02-27 14:52:25 -08:00
deadprogram
f6fda0efbc
Refactor tests for connection & cylon
2014-02-27 13:54:27 -08:00
deadprogram
8b5ae2e6a1
Refactor adaptor & basestar tests to cleaner pure JS style
2014-02-27 12:10:00 -08:00
Andrew Stewart
b056ee478d
Modify test harness to show we're in cylon-core
2014-02-27 09:41:47 -08:00
deadprogram
1a63cefd60
Make tests all green, now the real work begins
2014-02-27 06:55:08 -08:00
deadprogram
b27756abfc
WIP on pure JS revamp
2014-02-27 06:44:53 -08:00
Andrew Stewart
0fb3d27a0d
Switch to built-ins for testing booleans
2014-02-24 09:18:15 -08:00
Andrew Stewart
2ad461f3c6
New tests for #proxyTestStubs global function
2014-02-19 15:52:47 -08:00
deadprogram
88ef361d0d
Add helpful range conversion functions
2014-01-12 07:31:21 -08:00
Andrew Stewart
c830e70b4a
Finish with DigitalPin specs
2014-01-03 12:46:42 -08:00
Andrew Stewart
93ba79977d
Start on some DigitalPin tests
2014-01-02 16:47:51 -08:00
Andrew Stewart
dbcc05a13c
Add tests for Driver class
2013-12-18 13:02:18 -08:00
Andrew Stewart
fef740533c
Add tests for Adaptor class
2013-12-18 12:26:21 -08:00
deadprogram
6c1e591f84
Make even shorter syntax by removing redundant Adaptors and Drivers
2013-12-15 23:08:34 -08:00
deadprogram
ed50c385c4
Removing extraneous things from Adaptor/Driver
2013-12-15 19:28:12 -08:00
deadprogram
a341fa4f62
Working refactor of Adaptor/Driver base classes
2013-12-15 18:18:22 -08:00
deadprogram
8f40826a34
Remaining moves and refactoring for Adaptor/Driver base classes
2013-12-14 12:12:18 -08:00
deadprogram
0e874c52d5
Refactoring Adaptor and Driver into proper base classes
2013-12-14 11:54:56 -08:00
deadprogram
1833c304cd
Remove parens and add pending tests to digital-pin
2013-12-09 08:15:56 -08:00
Andrew Stewart
f1fea363b5
Add Robot#toString() method
2013-12-07 10:18:31 -05:00
deadprogram
372dde0078
Refactoring adaptor and driver initialization to simplify, and fix init overwrite error
2013-11-23 17:13:20 -08:00
Andrew Stewart
2bd8c54b49
WIP on tests for Basestar class
2013-11-22 15:12:30 -08:00
Andrew Stewart
6c8af7b9e2
Remove unnecessary specs
2013-11-22 12:02:28 -08:00
Andrew Stewart
1cd5883a3f
Clean up tests
2013-11-11 11:28:37 -05:00
Andrew Stewart
88ab1a2d34
Properly organize supporting classes for tests
2013-11-11 11:09:42 -05:00
Andrew Stewart
b5a4854533
Add tests for Cylon#findRobotConnection
2013-11-08 17:33:29 -07:00
Andrew Stewart
b7add10cb4
Add tests for Cylon#findRobotDevice()
2013-11-08 17:16:17 -07:00
Andrew Stewart
b2f2d11a85
Add specs for sync and async versions of findRobot()
2013-11-08 15:04:50 -07:00
Andrew Stewart
d7b3e63afe
Test for Cylon#robots
2013-11-08 14:43:05 -07:00
Andrew Stewart
1778312e6c
Tests for Cylon#api
2013-11-08 10:29:17 -07:00
Andrew Stewart
da5cb27c21
The Future's So Bright, I Gotta Wear Shades
...
I apologize for this commit message but cylon-specs + this was just too perfect.
Anyways, have gotten Cylon robot specs working now. For some reason by the time
the spec runner gets around to running cylon.spec, inside cylon.js Robot has
been redefined to an empty object '{}'.
This resulted in a "TypeError: object is not a function on constructor" error.
So to solve this I moved the require() for 'robot' inside the Cylon.robot()
method. This shouldn't reload code thanks to Node's require cache, but will
properly assign Robot when instantiating a new one.
2013-11-08 10:03:16 -07:00
Andrew Stewart
716f675147
Remove unnecessary tests
2013-11-08 09:48:20 -07:00
Andrew Stewart
bb1388e879
Clearer and more representative testing of method proxying
2013-11-06 15:23:32 -08:00
deadprogram
bb4859d83d
Revise proxy to use objects instead of prototypes
2013-11-05 20:08:03 -08:00
Andrew Stewart
eda6f9db76
Namespace Device class
2013-11-04 12:21:28 -08:00
Andrew Stewart
ae666f67dd
Namespace Connection class
2013-11-04 12:13:40 -08:00
Andrew Stewart
9d48cba3cf
Namespace Robot class
2013-11-04 11:57:27 -08:00
deadprogram
504e51bd28
Can now attach users own functions to robot at will
2013-10-28 23:53:30 -07:00
Andrew Stewart
5da9ac3216
Fix test fails
2013-10-28 17:56:00 -07:00
Andrew Stewart
c33a99e4bd
Add tests for proxyFunctionsToObject
2013-10-28 12:07:56 -07:00
Andrew Stewart
c5cf70a5af
Remove irrelevant tests
2013-10-28 11:58:31 -07:00
deadprogram
79f02193ca
All green
2013-10-25 23:29:07 -07:00
deadprogram
e43bf8ad45
Works for arduino blink, with new async hotness
2013-10-25 23:27:39 -07:00
Edgar O Silva
838aa9065a
Added colors to example.
2013-10-24 16:27:37 -05:00
deadprogram
10bccd896d
A bit more cleanup of self
2013-10-24 00:50:53 -07:00
deadprogram
a6d29ecbdd
Can proxy commands from connection to associated adaptor
2013-10-23 23:18:19 -07:00
deadprogram
b8371232d1
Proxy commands into device from associated driver
2013-10-23 23:02:54 -07:00
Andrew Stewart
4a57300d32
Fix test fails
2013-10-23 14:01:48 -07:00
Andrew Stewart
ecdc417a58
Revise Logger to accept multiple arguments
2013-10-23 12:23:10 -07:00
Andrew Stewart
9452739244
Add addProxy() method to Adaptor class
2013-10-23 12:18:20 -07:00
deadprogram
1209686388
Making test pending, for now
2013-10-23 11:53:58 -07:00
Andrew Stewart
dbe4ccbbd5
Fix connection test failure
2013-10-23 11:47:00 -07:00
deadprogram
8252d38a5e
WIP on dynamic loading of adaptor and driver modules
2013-10-23 08:38:00 -07:00
deadprogram
132282d4c2
Much along the way to adaptor/driver registration and loading
2013-10-22 23:23:52 -07:00
deadprogram
42cd14cf14
A little test output reformat
2013-10-22 22:21:37 -07:00
deadprogram
8b390cc486
Resolve merge conflicts with master
2013-10-22 22:13:36 -07:00
deadprogram
ca59493a12
Proper initialization of device
2013-10-22 22:06:49 -07:00
Andrew Stewart
da95bccdfa
Add global Logger object
2013-10-22 21:46:02 -07:00
deadprogram
c25324c225
Specify more pending tests for Device
2013-10-22 20:56:23 -07:00
deadprogram
48db540d37
Connections and Devices should belong to a robot
2013-10-22 16:39:49 -07:00
deadprogram
af4636598a
WIP on device
2013-10-22 13:13:55 -07:00
Andrew Stewart
ea90ed8889
Add utility functions and monkey-patches
2013-10-22 11:59:53 -07:00
Andrew Stewart
9e7614a4a1
Add Port class functionality and tests from Artoo
2013-10-21 22:13:25 -07:00
deadprogram
008f35ccbc
Add some pending tests
2013-10-20 23:24:38 -07:00
deadprogram
2f6ee5866d
Add port, and some test output cleanup
2013-10-20 22:30:01 -07:00
deadprogram
defa1cc91d
Need to be able to start
2013-10-20 14:47:40 -07:00
deadprogram
2019cd5b6c
All robots have a name
2013-10-20 13:29:41 -07:00
deadprogram
d7cc0c3730
WIP on init/start connections and devices
2013-10-19 22:25:31 -07:00
deadprogram
17be53408a
Remove anything not needed for test
2013-10-19 20:32:04 -07:00
deadprogram
c9953b8830
Work and create new robot
2013-10-19 20:31:29 -07:00
deadprogram
b0f4d9f12b
Name is just an option
2013-10-19 18:32:59 -07:00
deadprogram
13f3b6b1a8
Placeholders for core classes
2013-10-19 16:10:24 -07:00
deadprogram
e4540ead46
Remove commented lines
2013-10-19 14:36:40 -07:00
deadprogram
92c651f6b3
Add placeholder for Robot
2013-10-19 14:33:59 -07:00
Andrew Stewart
a2786dab48
Add missing commas to setTimeouts in spec
2013-10-18 23:25:12 -07:00
deadprogram
8d75066062
Adding a test robot method
2013-10-18 22:32:23 -07:00
deadprogram
543123040c
Initial commit
2013-10-17 23:55:48 -07:00