This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "testsuite": { | |
| "name": "Firefox_3617_Linux.ShowMoreTest", | |
| "errors": "0", | |
| "failures": "1", | |
| "tests": "6", | |
| "time": "0.009000001" | |
| }, | |
| "tests": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <testsuite name="Firefox_3617_Linux.ShowMoreTest" errors="0" failures="1" tests="6" time="0.009000001"> | |
| <testcase classname="Firefox_3617_Linux.ShowMoreTest" name="testCharCount" time="0.0010"/> | |
| <testcase classname="Firefox_3617_Linux.ShowMoreTest" name="testLinkAdded" time="0.0010"> | |
| <failure type="failed" message="[{"message":"The \"Show More\" text was not added to the show more link expected \"Show More1\" but was \"Show More\"","name":"AssertError","fileName":"http://localhost:9876/static/runner.js","lineNumber":356,"stack":"Error(\"The \\\"Show More\\\" text was not added to the show more link expected \\\"Show More1\\\" but was \\\"Show More\\\"\")@:0\nfail(\"The \\\"Show More\\\" text was not added to the show more link expected \\\"Show More1\\\" but was \\\"Show More\\\"\&quo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.post('/pub/:channel/:eventName', function(request, response) { | |
| var data = request.body, // Body of the POST request | |
| channel = request.params.channel, // Value of channel, ex: "myapp" | |
| eventName = request.params.eventName; // Value of eventName, ex: "load" | |
| // do stuff | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ curl http://localhost:2012/pub/chatapp/new-user -d "{\"name\":\"Seth\"}" -H "Content-Type:application/json" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npm install -g venus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @venus-library mocha | |
| * @venus-include ../src/Greeter.js | |
| */ | |
| describe('Greeter', function() { | |
| it('.talk() should format string', function() { | |
| var greet = new Greeter(), | |
| result = greet.talk('Hello %s, how are you doing this fine %s?', 'Seth', 'Thursday'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Dependencies | |
| var mincer = require('mincer'), | |
| path = require('path'), | |
| connect = require('connect'), | |
| http = require('http'); | |
| // Globals | |
| var environment, | |
| app; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // EventBus.js | |
| // Creating the Event Bus object is easy, because we can simply extend the Backbone.Events object | |
| var eventBus = {}; | |
| _.extend(eventBus, Backbone.Events); | |
| // Note: in a real application, you would want to place your eventBus object within a namespace, to avoid polluting the global namespace in your application. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ViewE.js | |
| eventBus.trigger('item-selected', { itemId: id }); |
OlderNewer