mbostock/d3 — pull request #1236 by jasondavies (2013-05-08 10:54:01+00:00)
Title: Fix time tests by adding Date to sandbox.

Since tests are now run in their own sandbox, assert.deepEqual was not properly testing the returned Date objects for equality, as they weren't instances of the same Date class used by the test itself, causing type inference to fail.

It was always returning true, even for different dates!

An alternative fix would be to define our own assert.dateEqual, which would compare .getTime() directly instead of using type inference.