aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorIgor Minar2012-03-12 09:39:21 -0700
committerIgor Minar2012-03-12 23:04:11 -0700
commit9134f5ce5a402bb76ba9bc5627ade282552898fe (patch)
tree0849755c0cfbc1e4a14e73ef969093e0d822ddd2 /test
parent4e6b065a2f24745ff9691914363ff49a94abb92f (diff)
downloadangular.js-9134f5ce5a402bb76ba9bc5627ade282552898fe.tar.bz2
style(ng-include): remove unused args
Diffstat (limited to 'test')
-rw-r--r--test/directive/ngIncludeSpec.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/directive/ngIncludeSpec.js b/test/directive/ngIncludeSpec.js
index f5beebdc..ab63dd02 100644
--- a/test/directive/ngIncludeSpec.js
+++ b/test/directive/ngIncludeSpec.js
@@ -17,7 +17,7 @@ describe('ng-include', function() {
it('should include on external file', inject(putIntoCache('myUrl', '{{name}}'),
- function($rootScope, $compile, $browser) {
+ function($rootScope, $compile) {
element = jqLite('<ng:include src="url" scope="childScope"></ng:include>');
jqLite(document.body).append(element);
element = $compile(element)($rootScope);
@@ -63,7 +63,7 @@ describe('ng-include', function() {
it('should allow this for scope', inject(putIntoCache('myUrl', '{{"abc"}}'),
- function($rootScope, $compile, $browser) {
+ function($rootScope, $compile) {
element = jqLite('<ng:include src="url" scope="this"></ng:include>');
element = $compile(element)($rootScope);
$rootScope.url = 'myUrl';
@@ -97,7 +97,7 @@ describe('ng-include', function() {
it('should evaluate onload expression when a partial is loaded', inject(
putIntoCache('myUrl', 'my partial'),
- function($rootScope, $compile, $browser) {
+ function($rootScope, $compile) {
element = jqLite('<ng:include src="url" onload="loaded = true"></ng:include>');
element = $compile(element)($rootScope);
@@ -112,7 +112,7 @@ describe('ng-include', function() {
it('should destroy old scope', inject(putIntoCache('myUrl', 'my partial'),
- function($rootScope, $compile, $browser) {
+ function($rootScope, $compile) {
element = jqLite('<ng:include src="url"></ng:include>');
element = $compile(element)($rootScope);
@@ -129,7 +129,7 @@ describe('ng-include', function() {
it('should do xhr request and cache it',
- inject(function($rootScope, $httpBackend, $compile, $browser) {
+ inject(function($rootScope, $httpBackend, $compile) {
element = $compile('<ng:include src="url"></ng:include>')($rootScope);
$httpBackend.expect('GET', 'myUrl').respond('my partial');
@@ -164,7 +164,7 @@ describe('ng-include', function() {
it('should be async even if served from cache', inject(
putIntoCache('myUrl', 'my partial'),
- function($rootScope, $compile, $browser) {
+ function($rootScope, $compile) {
element = $compile('<ng:include src="url"></ng:include>')($rootScope);
$rootScope.url = 'myUrl';