aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/service/browserSpecs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/service/browserSpecs.js b/test/service/browserSpecs.js
index 41f17f2a..a3ec6486 100644
--- a/test/service/browserSpecs.js
+++ b/test/service/browserSpecs.js
@@ -147,14 +147,14 @@ describe('browser', function() {
});
- it('should call callback when script fails to load', function() {
+ it('should call callback with status -2 when script fails to load', function() {
browser.xhr('JSONP', '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');
script.onerror();
- expect(log).toEqual('undefined:undefined;');
+ expect(log).toEqual('-2:undefined;');
});