2010-10-18  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Darin Adler.

        DOMStringList should return null if the index is out of range
        https://bugs.webkit.org/show_bug.cgi?id=47829

        Add tests for out of range behavior here since IndexedDB is the only user
        of DOMStringList.

        * storage/indexeddb/database-basics-expected.txt:
        * storage/indexeddb/database-basics.html:
        * storage/indexeddb/objectstore-basics-expected.txt:
        * storage/indexeddb/objectstore-basics.html:
2010-10-18  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Darin Adler.

        DOMStringList should return null if the index is out of range
        https://bugs.webkit.org/show_bug.cgi?id=47829

        When item() returns a null string, it needs to be passed to JS as
        null. The indexed getter will then magically do the right thing.
        So all that's left is having DOMStringList::item() return null when
        the index is out of bounds.

        * dom/DOMStringList.cpp:
        (WebCore::DOMStringList::item):
        * dom/DOMStringList.h:
        * dom/DOMStringList.idl:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
9 files changed