[Webkit-unassigned] [Bug 77899] IETC: FileList.item(-1) should return null instead of raising
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jun 4 19:24:43 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=77899
--- Comment #26 from Li Yin <li.yin at intel.com> 2012-06-04 19:24:43 PST ---
(In reply to comment #24)
> (In reply to comment #23)
> > (In reply to comment #22)
> > > Yeah, -1 is converted to 2^32 - 1, do you mean we should test file.item(-4294967295) or file.item(-4294967296)?
> > > file.item(-4294967295) equals file.item(1);
> > > file.item(-4294967296) equals file.item(0);
> > >
> > > I will add these tests.
> >
> > That's a good idea. And plus files.item(4294967295), which should equal to files.item(-1).
>
> So in summary we might want to check the followings:
>
> files.item(4294967295) == files.item(-1) == null
> files.item(4294967296) == files.item(0) == "UTF8.txt"
> files.item(4294967297) == files.item(1) == "UTF8-2.txt"
> files.item(4294967298) == files.item(2) == null
Done.
Thanks.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list