Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Infinitive loop #275
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
infews
Sep 2, 2012
Contributor
Are you sumbitting a form under test? Form submits force a reload and get you into a loop. Try spying on your form submit and see if that stabilizes your suite.
Are you sumbitting a form under test? Form submits force a reload and get you into a loop. Try spying on your form submit and see if that stabilizes your suite. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
plusgut
commented
Sep 3, 2012
Nope, i'm just checking if true is false, so no real action happens |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
Can you post a simple example that demonstrates the problem? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
timblack1
commented
Nov 20, 2012
I'm getting a similar error. Did you find a solution? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
Honroy
Dec 7, 2012
I had the same problem using phantomjs and jasmine. Following the thread at johnbintz/jasmine-headless-webkit#84, I thought I might be having an issue with onPageLoaded in jasmineRunner.js getting called more than once and therefore firing window.onload more than once. So I put in a null check on _cachedWindowLoad:
var _cachedWindowLoad;
if (!_cachedWindowLoad) {
_cachedWindowLoad = window.onload;
if (_cachedWindowLoad) {
_cachedWindowLoad();
}
}
I have not seen that error since I made this change.
Honroy
commented
Dec 7, 2012
I had the same problem using phantomjs and jasmine. Following the thread at johnbintz/jasmine-headless-webkit#84, I thought I might be having an issue with onPageLoaded in jasmineRunner.js getting called more than once and therefore firing window.onload more than once. So I put in a null check on _cachedWindowLoad: var _cachedWindowLoad;
I have not seen that error since I made this change. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
OK, sounds like a jasmine-headless-webkit problem. Closing. |
ragaskar
closed this
Dec 7, 2012
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
timblack1
Dec 7, 2012
What fixed it for me was that I discovered I had been loading Jasmine twice in the same page by accident. So once I made it so Jasmine loaded only once, the error went away.
timblack1
commented
Dec 7, 2012
What fixed it for me was that I discovered I had been loading Jasmine twice in the same page by accident. So once I made it so Jasmine loaded only once, the error went away. |
plusgut commentedAug 28, 2012
I'm working with phantomjs and with certain conditions (don't know yet how to reproduce it), jasmine gets into a infinitive loop.
RangeError: Maximum call stack size exceeded.
http://localhost/jasmine.js:1685
http://localhost/jasmine.js:1685
http://localhost/jasmine.js:1685
http://localhost/jasmine.js:1685