forked from angular/angular.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
470 additions
and
74 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
describe("errorDisplay", function () { | ||
|
||
var $location, compileHTML; | ||
|
||
beforeEach(module('docsApp')); | ||
|
||
beforeEach(inject(function ($injector) { | ||
var $rootScope = $injector.get('$rootScope'), | ||
$compile = $injector.get('$compile'); | ||
|
||
$location = $injector.get('$location'); | ||
|
||
compileHTML = function (code) { | ||
var elm = angular.element(code); | ||
$compile(elm)($rootScope); | ||
$rootScope.$digest(); | ||
return elm; | ||
}; | ||
|
||
this.addMatchers({ | ||
toInterpolateTo: function (expected) { | ||
// Given a compiled DOM node with a minerr-display attribute, | ||
// assert that its interpolated string matches the expected text. | ||
return this.actual.text() === expected; | ||
} | ||
}); | ||
})); | ||
|
||
it('should interpolate a template with no parameters', function () { | ||
var elm; | ||
|
||
spyOn($location, 'search').andReturn({}); | ||
elm = compileHTML('<div error-display="This is a test"></div>'); | ||
expect(elm).toInterpolateTo('This is a test'); | ||
}); | ||
|
||
it('should interpolate a template with no parameters when search parameters are present', function () { | ||
var elm; | ||
|
||
spyOn($location, 'search').andReturn({ p0: 'foobaz' }); | ||
elm = compileHTML('<div error-display="This is a test"></div>'); | ||
expect(elm).toInterpolateTo('This is a test'); | ||
}); | ||
|
||
it('should correctly interpolate search parameters', function () { | ||
var elm; | ||
|
||
spyOn($location, 'search').andReturn({ p0: '42' }); | ||
elm = compileHTML('<div error-display="The answer is {0}"></div>'); | ||
expect(elm).toInterpolateTo('The answer is 42'); | ||
}); | ||
|
||
it('should interpolate parameters in the specified order', function () { | ||
var elm; | ||
|
||
spyOn($location, 'search').andReturn({ p0: 'second', p1: 'first' }); | ||
elm = compileHTML('<div error-display="{1} {0}"></div>'); | ||
expect(elm).toInterpolateTo('first second'); | ||
}); | ||
|
||
it('should preserve interpolation markers when fewer arguments than needed are provided', function () { | ||
var elm; | ||
|
||
spyOn($location, 'search').andReturn({ p0: 'Fooooo' }); | ||
elm = compileHTML('<div error-display="This {0} is {1} on {2}"></div>'); | ||
expect(elm).toInterpolateTo('This Fooooo is {1} on {2}'); | ||
}); | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@ngdoc error | ||
@name $cacheFactory:iid | ||
@fullName Invalid ID | ||
@description | ||
|
||
This error occurs when trying to create a new `cacheFactory` object with a | ||
specified cache ID, but the cache ID is already taken. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $compile:ctreq | ||
@fullName Missing Required Controller | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $compile:iscp | ||
@fullName Invalid Isolate Scope | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $compile:multidir | ||
@fullName Multiple Directive Resource Contention | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $compile:noass | ||
@fullName Non-Assignable Expression | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $compile:nodomevents | ||
@fullName Interpolated Event Attributes | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $compile:tpload | ||
@fullName Template Loader Error | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $compile:tplrt | ||
@fullName Invalid Template Root | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $compile:utrat | ||
@fullName Unterminated Attribute | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $controller:noscp | ||
@fullName Missing $scope object | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $httpBackend:noxhr | ||
@fullName Unsupported XHR | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@ngdoc overview | ||
@name Error Reference | ||
@description | ||
|
||
Use the Error Reference manual to find information about error conditions in | ||
your AngularJS app. Errors thrown in production builds of AngularJS will log | ||
links to this site on the console. | ||
|
||
Other useful references for debugging your app include: | ||
|
||
- {@link api/ API Reference} for detailed information about specific features | ||
- {@link guide/ Developer Guide} for AngularJS concepts | ||
- {@link tutorial/ Tutorial} for getting started |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $injector:cdep | ||
@fullName Circular Dependency | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $injector:itkn | ||
@fullName Bad Injection Token | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $injector:modulerr | ||
@fullName Module Error | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $injector:nomod | ||
@fullName Module Unavailable | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $injector:pget | ||
@fullName Provider Missing $get | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $injector:unpr | ||
@fullName Unknown Provider | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $interpolate:interr | ||
@fullName Interpolation Error | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $interpolate:noconcat | ||
@fullName Multiple Expressions | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name jqLite:nosel | ||
@fullName Unsupported Selector Lookup | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name jqLite:off_args | ||
@fullName Invalid jqLite#off() parameter | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name jqLite:on_args | ||
@fullName Invalid jqLite#on() Parameters | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $location:istart | ||
@fullName Invalid URL | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $location:nohash | ||
@fullName Missing Hash Prefix | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $location:nopp | ||
@fullName Missing Path Prefix | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name ng:areq | ||
@fullName Bad Argument | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name ng:cpi | ||
@fullName Bad Copy | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name ng:cpws | ||
@fullName Copying Window or Scope | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name ngModel:noass | ||
@fullName Non-Assignable Expression | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name ngOptions:iexp | ||
@fullName Invalid Expression | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name ngPattern:noregexp | ||
@fullName Expected Regular Expression | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name ngRepeat:dupes | ||
@fullName Duplicate Repeater Key | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name ngRepeat:iexp | ||
@fullName Invalid Expression | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name ngRepeat:iidexp | ||
@fullName Invalid Identifier | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name ngResource:badargs | ||
@fullName Too Many Arguments | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name ngSanitize:badparse | ||
@fullName Parsing Error | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $parse:isecfld | ||
@fullName Referencing constructor Field | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $parse:isecfn | ||
@fullName Referencing Function Disallowed | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $parse:lexerr | ||
@fullName Lexer Error | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $parse:syntax | ||
@fullName Syntax Error | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $parse:ueoe | ||
@fullName Unexpected End of Expression | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $rootScope:infdig | ||
@fullName Infinite $digest Loop | ||
@description |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ngdoc error | ||
@name $rootScope:inprog | ||
@fullName Action Already In Progress | ||
@description |
This file contains 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
Oops, something went wrong.