Fix some typos, missing semi-colons, etc...

This is a combination of 4 commits:
* Fix some small typos, missing semi-colons, etc.
* Fix comment for angular.scenario.SpecRunner.run method
* Fixed some missing semi-colons in cookbook
* Fixed missing semi-colon in nodeserver/server.js
This commit is contained in:
Vojta Jina 2011-04-20 00:24:20 +02:00 committed by Igor Minar
parent 35bb19856c
commit f85c82acd6
7 changed files with 10 additions and 11 deletions

View file

@ -105,7 +105,7 @@ The two partials are defined in the following URLs:
# Things to notice
* Routes are defined in the `AppCntl` class. The initialization of the controller causes the
initialization of the {@link angular.service.$rouet $route} service with the proper URL routes.
initialization of the {@link angular.service.$route $route} service with the proper URL routes.
* The {@link angular.service.$route $route} service then watches the URL and instantiates the
appropriate controller when the URL changes.
* The {@link angular.widget.ng:view ng:view} widget loads the view when the URL changes. It also

View file

@ -68,22 +68,22 @@ allow a user to enter data.
it('should validate zip', function(){
expect(using('.example').element(':input[name=user.address.zip]').attr('className'))
.not().toMatch(/ng-validation-error/)
.not().toMatch(/ng-validation-error/);
using('.example').input('user.address.zip').enter('abc');
expect(using('.example').element(':input[name=user.address.zip]').attr('className'))
.toMatch(/ng-validation-error/)
.toMatch(/ng-validation-error/);
});
it('should validate state', function(){
expect(using('.example').element(':input[name=user.address.state]').attr('className'))
.not().toMatch(/ng-validation-error/)
.not().toMatch(/ng-validation-error/);
using('.example').input('user.address.state').enter('XXX');
expect(using('.example').element(':input[name=user.address.state]').attr('className'))
.toMatch(/ng-validation-error/)
.toMatch(/ng-validation-error/);
});
</doc:scenario>
</doc:example>

View file

@ -97,7 +97,7 @@ StaticServlet.prototype.handleRequest = function(req, res) {
return self.sendDirectory_(req, res, path);
return self.sendFile_(req, res, path);
});
}
};
StaticServlet.prototype.sendError_ = function(req, res, error) {
res.writeHead(500, {

View file

@ -16,8 +16,7 @@ angular.scenario.SpecRunner = function() {
* based on the describe nesting.
*
* @param {Object} spec A spec object
* @param {Object} specDone An angular.scenario.Application instance
* @param {Function} Callback function that is called when the spec finshes.
* @param {Function} specDone function that is called when the spec finshes. Function(error, index)
*/
angular.scenario.SpecRunner.prototype.run = function(spec, specDone) {
var self = this;

View file

@ -627,7 +627,7 @@ angularWidget('option', function(){
it('should load date filter', function(){
expect(element('.doc-example-live ng\\:include').text()).toMatch(/angular\.filter\.date/);
});
it('should change to hmtl filter', function(){
it('should change to html filter', function(){
select('url').option('angular.filter.html.html');
expect(element('.doc-example-live ng\\:include').text()).toMatch(/angular\.filter\.html/);
});

View file

@ -138,7 +138,7 @@ describe("angular.scenario.dsl", function() {
hashSearch: {x: 2},
hashPath: '/bar',
search: {foo: 10}
}
};
} else {
throw new Error('unknown service id ' + serviceId);
}

View file

@ -901,7 +901,7 @@ describe("widget", function(){
rootScope.ChildCtrl = function() {
this.log.push('child');
}
};
$location.updateHash('/foo');
$browser.xhr.expectGET('viewPartial.html').