aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/browserSpecs.js
diff options
context:
space:
mode:
authorIgor Minar2012-04-09 14:27:14 -0700
committerIgor Minar2012-04-09 17:59:47 -0700
commitfbaa1968b7c596ccb63ea8b4be1d3bd92eda50d8 (patch)
treef67c6b8cf724431efead5197cced66dc2340f9f5 /test/ng/browserSpecs.js
parent13d5528a5f5a2f0feee5c742788a914d2371841e (diff)
downloadangular.js-fbaa1968b7c596ccb63ea8b4be1d3bd92eda50d8.tar.bz2
chore($browser): remove the addJs method
this was never meant to be a public api used by apps. I refactored the code to hide the functionality. BREAKING CHANGE: $browser.addJs method was removed apps that depended on this functionality should either use many of the existing script loaders or create a simple helper method specific to the app.
Diffstat (limited to 'test/ng/browserSpecs.js')
-rw-r--r--test/ng/browserSpecs.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/ng/browserSpecs.js b/test/ng/browserSpecs.js
index 4563d14b..77894d43 100644
--- a/test/ng/browserSpecs.js
+++ b/test/ng/browserSpecs.js
@@ -526,19 +526,6 @@ describe('browser', function() {
});
});
- describe('addJs', function() {
- it('should append a script tag to body', function() {
- browser.addJs('http://localhost/bar.js');
- expect(scripts.length).toBe(1);
- expect(scripts[0].src).toBe('http://localhost/bar.js');
- expect(scripts[0].id).toBe('');
- });
-
- it('should return the appended script element', function() {
- var script = browser.addJs('http://localhost/bar.js');
- expect(script).toBe(scripts[0]);
- });
- });
describe('baseHref', function() {
var jqDocHead;