fix(http): remove dots from jsonp callback name (#13219)

PR Close #13219
This commit is contained in:
Dzmitry Shylovich
2016-12-03 21:42:38 +03:00
committed by Miško Hevery
parent 1ef3eeecbd
commit 1eece5046d
2 changed files with 10 additions and 5 deletions

View File

@ -70,6 +70,11 @@ export function main() {
expect(instance).toBeAnInstanceOf(JSONPConnection);
});
it('callback name should not contain dots', () => {
const domJsonp = new MockBrowserJsonp();
const callback: string = domJsonp.requestCallback(domJsonp.nextRequestID());
expect(callback.indexOf('.') === -1).toBeTruthy();
});
describe('JSONPConnection', () => {
it('should use the injected BaseResponseOptions to create the response',