aboutsummaryrefslogtreecommitdiffstats
path: root/test/BrowserSpecs.js
diff options
context:
space:
mode:
authorIgor Minar2011-08-05 16:24:12 -0700
committerIgor Minar2011-08-06 01:54:06 -0700
commit06835a462afc7105532e13abdd5217314b3ae71e (patch)
treeeef3f670482fb1061f99ce12228f687051cca1c5 /test/BrowserSpecs.js
parent142cffcf64d2dce93089e9a73257bddf50e96990 (diff)
downloadangular.js-06835a462afc7105532e13abdd5217314b3ae71e.tar.bz2
style($function): replace $function with 'function'
Diffstat (limited to 'test/BrowserSpecs.js')
-rw-r--r--test/BrowserSpecs.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/BrowserSpecs.js b/test/BrowserSpecs.js
index 92e4e501..a88df3f4 100644
--- a/test/BrowserSpecs.js
+++ b/test/BrowserSpecs.js
@@ -111,7 +111,7 @@ describe('browser', function(){
var script = scripts[0];
var url = script.src.split('?cb=');
expect(url[0]).toEqual('http://example.org/path');
- expect(typeof fakeWindow[url[1]]).toEqual($function);
+ expect(typeof fakeWindow[url[1]]).toEqual('function');
fakeWindow[url[1]]('data');
script.onload();
@@ -125,8 +125,8 @@ describe('browser', function(){
it('should call callback when script fails to load', function() {
browser.xhr('JSON', 'http://example.org/path?cb=JSON_CALLBACK', null, callback);
var script = scripts[0];
- expect(typeof script.onload).toBe($function);
- expect(typeof script.onerror).toBe($function);
+ expect(typeof script.onload).toBe('function');
+ expect(typeof script.onerror).toBe('function');
script.onerror();
expect(log).toEqual('undefined:undefined;');