refactor(ngMock): extract browserTrigger from ngScenario
`ngScenario` is deprecated, and we expect to remove it from the project in 1.6, but we use the `browserTrigger` helper throughout our unit tests. So in preparation for removing `ngScenario` we are relocating `browserTrigger` to the `ngMock` folder. Although many people are using browserTrigger in their own application testing we are still not yet ready to make this a public API; so developers use this helper at their own risk. Closes #14718 BREAKING CHANGE Although it is not a public API, many developers are using `browserTrigger` in their own application testing. We have now moved this helper from `ngScenario/browserTrigger.js` to `ngMock/browserTrigger.js`.
This commit is contained in:
committed by
Peter Bacon Darwin
parent
f3f5cf72ee
commit
3b4bfa1771
Vendored
+2
-3
@@ -137,7 +137,8 @@ var angularFiles = {
|
||||
'src/ngSanitize/filter/linky.js'
|
||||
],
|
||||
'ngMock': [
|
||||
'src/ngMock/angular-mocks.js'
|
||||
'src/ngMock/angular-mocks.js',
|
||||
'src/ngMock/browserTrigger.js'
|
||||
],
|
||||
'ngTouch': [
|
||||
'src/ngTouch/touch.js',
|
||||
@@ -152,7 +153,6 @@ var angularFiles = {
|
||||
|
||||
'angularScenario': [
|
||||
'src/ngScenario/Scenario.js',
|
||||
'src/ngScenario/browserTrigger.js',
|
||||
'src/ngScenario/Application.js',
|
||||
'src/ngScenario/Describe.js',
|
||||
'src/ngScenario/Future.js',
|
||||
@@ -211,7 +211,6 @@ var angularFiles = {
|
||||
'build/angular.js',
|
||||
'@angularSrcModules',
|
||||
'test/modules/no_bootstrap.js',
|
||||
'src/ngScenario/browserTrigger.js',
|
||||
'test/helpers/*.js',
|
||||
'test/ngAnimate/*.js',
|
||||
'test/ngMessageFormat/*.js',
|
||||
|
||||
@@ -5,6 +5,11 @@
|
||||
|
||||
"angular": false,
|
||||
"expect": false,
|
||||
"jQuery": false
|
||||
"jQuery": false,
|
||||
|
||||
"AnimationEvent": false,
|
||||
"TransitionEvent": false,
|
||||
"WebKitAnimationEvent": false,
|
||||
"WebKitTransitionEvent": false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,10 +13,6 @@
|
||||
"_jQuery": false,
|
||||
"angularInit": false,
|
||||
"formatException": false,
|
||||
"AnimationEvent": false,
|
||||
"TransitionEvent": false,
|
||||
"WebKitAnimationEvent": false,
|
||||
"WebKitTransitionEvent": false,
|
||||
"$runner": false,
|
||||
"callerFile": false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user