Remove trailing white spaces from all source files

find . -name "*.js" -print | xargs sed -Ei s/[[:space:]]*$//
This commit is contained in:
Vojta Jina 2011-05-19 17:38:23 +02:00 committed by Igor Minar
parent 1abdc097b2
commit 805e083c24
4 changed files with 11 additions and 11 deletions

View file

@ -11,7 +11,7 @@ describe('example.personalLog.LogCtrl', function() {
beforeEach(function() {
logCtrl = createNotesCtrl();
});
it('should initialize notes with an empty array', function() {
expect(logCtrl.logs).toEqual([]);
@ -28,7 +28,7 @@ describe('example.personalLog.LogCtrl', function() {
it('should add newMsg to logs as a log entry', function() {
logCtrl.newMsg = 'first log message';
logCtrl.addLog();
expect(logCtrl.logs.length).toBe(1);
expect(logCtrl.logs[0].msg).toBe('first log message');

View file

@ -1,8 +1,8 @@
angular.scenarioDef.datastore = {
$before:[
{Given:"dataset",
{Given:"dataset",
dataset:{
Book:[{$id:'moby', name:"Moby Dick"},
Book:[{$id:'moby', name:"Moby Dick"},
{$id:'gadsby', name:'Great Gadsby'}]
}
},
@ -10,10 +10,10 @@ angular.scenarioDef.datastore = {
],
checkLoadBook:[
{Then:"drainRequestQueue"},
{Then:"text", at:"{{book.$id}}", should_be:"moby"},
{Then:"text", at:"li[$index=0] {{book.name}}", should_be:"Great Gahdsby"},
{Then:"text", at:"li[$index=0] {{book.name}}", should_be:"Moby Dick"},
]
};

View file

@ -837,16 +837,16 @@ angularWidget('a', function() {
*
* @description
* The `ng:repeat` widget instantiates a template once per item from a collection. The collection is
* enumerated with the `ng:repeat-index` attribute, starting from 0. Each template instance gets
* its own scope, where the given loop variable is set to the current collection item, and `$index`
* enumerated with the `ng:repeat-index` attribute, starting from 0. Each template instance gets
* its own scope, where the given loop variable is set to the current collection item, and `$index`
* is set to the item index or key.
*
* Special properties are exposed on the local scope of each template instance, including:
*
* * `$index` `{number}` iterator offset of the repeated element (0..length-1)
* * `$position` `{string}` position of the repeated element in the iterator. One of:
* * `$position` `{string}` position of the repeated element in the iterator. One of:
* * `'first'`,
* * `'middle'`
* * `'middle'`
* * `'last'`
*
* Note: Although `ng:repeat` looks like a directive, it is actually an attribute widget.

View file

@ -123,7 +123,7 @@ describe('browser', function(){
expect(code).toEqual(202);
expect(response).toEqual('RESPONSE');
});
it('should not set Content-type header for GET requests', function() {
browser.xhr('GET', 'URL', 'POST-DATA', function(c, r) {});