diff options
| author | Igor Minar | 2011-08-05 16:24:12 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-08-06 01:54:06 -0700 |
| commit | 06835a462afc7105532e13abdd5217314b3ae71e (patch) | |
| tree | eef3f670482fb1061f99ce12228f687051cca1c5 /test/BrowserSpecs.js | |
| parent | 142cffcf64d2dce93089e9a73257bddf50e96990 (diff) | |
| download | angular.js-06835a462afc7105532e13abdd5217314b3ae71e.tar.bz2 | |
style($function): replace $function with 'function'
Diffstat (limited to 'test/BrowserSpecs.js')
| -rw-r--r-- | test/BrowserSpecs.js | 6 |
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;'); |
