Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe("hashchange.polling", function() {
- it("changing the hash will trigger when the polling loop catches it", function() {
- var callback = jasmine.createSpy();
- jQuery(window).bind( 'hashchange', callback);
- window.location.hash = 'test';
- waits(200);
- runs(function() {
- expect(callback).toHaveBeenCalled();
- });
- });
- });
Add Comment
Please, Sign In to add comment