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:
Martin Staffa
2016-06-06 17:03:59 +02:00
committed by Peter Bacon Darwin
parent f3f5cf72ee
commit 3b4bfa1771
4 changed files with 8 additions and 8 deletions
+2 -3
View File
@@ -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',
+6 -1
View File
@@ -5,6 +5,11 @@
"angular": false,
"expect": false,
"jQuery": false
"jQuery": false,
"AnimationEvent": false,
"TransitionEvent": false,
"WebKitAnimationEvent": false,
"WebKitTransitionEvent": false
}
}
-4
View File
@@ -13,10 +13,6 @@
"_jQuery": false,
"angularInit": false,
"formatException": false,
"AnimationEvent": false,
"TransitionEvent": false,
"WebKitAnimationEvent": false,
"WebKitTransitionEvent": false,
"$runner": false,
"callerFile": false
}