Commit Graph

75 Commits

Author SHA1 Message Date
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