Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added time to the popstate event timeout

Apparently, node 0.8 mixes up thread execution order and sometimes the 0ms timeout isn't enough to catch the popstate event.  This caused ```npm test``` to fail.  Interestingly, it did not cause ```test/runner -s window/history.js``` to fail.  Its always scary when issues are not stateless...
  • Loading branch information...
commit a0d3e9efc9a264bc654e6c9e5613e7240c5dee8a 1 parent d9adcb8
Brian Peacock authored domenic committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  test/window/history.js
View
2  test/window/history.js
@@ -130,5 +130,5 @@ exports["the history object should fire popstate on the window while navigating
t.ok(eventFired, "popstate event should be fired.");
t.strictEqual(state, eventState);
t.done();
- }, 0);
+ }, 10);
};
Please sign in to comment.
Something went wrong with that request. Please try again.