I'm trying to hack on Peon, so far I've not been able to successfuly run the tests.
Here are the steps I took to setup my dev environment to start hacking on peon. Just in case someone else needs them.
| <html> | |
| Jst looking | |
| </html> |
| var Jaxy = function() { | |
| this.xhr = new XMLHttpRequest; | |
| }; | |
| Jaxy.prototype.get = function(options) { | |
| if (typeof options.url === 'undefined') return; | |
| var self = this; | |
| var url = options.url || ''; | |
| var success = options.success || null; | |
| var error = options.error || null; |
| if (typeof System === 'undefined') { | |
| System = { | |
| Gadget: { | |
| settingsUI: '', | |
| onSettingsClosed: function() {}, | |
| Settings: { | |
| read: function (key) { return key; }, | |
| readString: function (key) { return key; } | |
| } | |
| } |
| [tox] | |
| envlist = py26,py27 | |
| [testenv] | |
| commands = konira -t -d | |
| [testenv:py26] | |
| basepython=C:\env\python26\python.exe | |
| [testenv:py27] |
| # DRY for os.path.join | |
| import os | |
| j = lambda filename: os.path.join('/my/base/path', filename) |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" type="text/css" href="" /> | |
| <script type="text/javascript" src=""></script> | |
| </head> | |
| <body> | |
| <div> | |
| <p>Hello</p> |
| { | |
| "version": "1.0", | |
| "title": "A dirt simple example of a BlankStage story", | |
| "summary": "This really is nothing but a collection of links as chapters. A proper story would most likely take you through some chapters that have a linear (or user-directed) set of actions.", | |
| "synopsis": "", | |
| "copyright": "Copyright © 2012 Me/You/Who?", | |
| "license": "DRMed -- OMG!!!", | |
| "chapters": [ | |
| { | |
| "title": "This is chapter 1.", |
| var Bunch = (function () { | |
| // internals | |
| var defaults = { | |
| IDENTITY_FIELD: 'id', | |
| SEQUENCE_START: 0, | |
| hasIdentity: function hasIdentity( item ) { | |
| return item[ this._identityField ]; | |
| }, | |
| ensureIdentity: function ensureIdentity( item ) { |
| #!/bin/sh | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 profile_name" | |
| exit 1 | |
| fi | |
| PROFILE_NAME="$1" | |
| GOOGLE_CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" | |
| USER_DIR="/Users/$USER/Library/Application Support/Google/Chrome/${PROFILE_NAME}" | |
| exec "$GOOGLE_CHROME" \ |