Skip to content
  • commit-queue@webkit.org's avatar
    Implement a CloseEvent constructor for V8 · 8b7cf743
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=68793
    
    Patch by Kentaro Hara <haraken@chromium.org> on 2011-09-26
    Reviewed by Adam Barth.
    
    Source/WebCore:
    
    Test: fast/events/constructors/close-event-constructor.html
    
    * bindings/v8/OptionsObject.cpp:
    (WebCore::OptionsObject::getKey): Just removed an extra space.
    (WebCore::OptionsObject::getKeyValue): Returns an unsigned short value corresponding to the given key.
    * bindings/v8/OptionsObject.h:
    * bindings/v8/custom/V8EventConstructors.cpp: Added the CloseEvent constructor.
    * websockets/CloseEvent.idl: Added a 'V8CustomConstructor' attribute.
    
    LayoutTests:
    
    Enabled close-event-constructor.html, since now V8 has the CloseEvent constructor.
    
    * platform/chromium/test_expectations.txt:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    8b7cf743