- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Tue, 27 Aug 2013 21:47:51 -0400
- To: Jatinder Mann <jmann@microsoft.com>
- CC: Nic Jansma <nic@nicj.net>, David Bruant <bruant.d@gmail.com>, James Simonsen <simonjam@google.com>, public-web-perf <public-web-perf@w3.org>
On 8/27/13 5:58 PM, Jatinder Mann wrote: > The intention here being that we return a copy of the resources available at that moment in > time, so one can compare the list of resources available at different > moments in time. E.g., I can compare a snapshot of the list at load time > and unload time to see what was dynamically added after load. This requires returning a new list, but not new objects in the list... > We should add a test case to check if performance.getEntries()[0] == > performance.getEntries()[0] returns false. If it returns false no matter what, how would you tell whether things got added or not? It seems to me that performance.getEntries() == performance.getEntries() should return false (new Array returned each time) but performance.getEntries()[0] == performance.getEntries()[0] should return true (because the event loop has not spun, so you get the same set of entries back). -Boris
Received on Wednesday, 28 August 2013 01:48:23 UTC