Skip to content
  • commit-queue@webkit.org's avatar
    Implement a CloseEvent constructor for JSC · 9dd03428
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=68340
    
    Patch by Kentaro Hara <haraken@chromium.org> on 2011-09-25
    Reviewed by Oliver Hunt.
    
    Source/WebCore:
    
    The spec of the CloseEvent constructor is here:
    http://dev.w3.org/html5/websockets/#closeevent
    
    Test: fast/events/constructors/close-event-constructor.html
    
    * bindings/generic/EventConstructors.h: Added a definition for the CloseEvent constructor.
    * bindings/js/JSEventConstructors.cpp: Added #includes for CloseEvent.
    * websockets/CloseEvent.h: Added a definition for CloseEventInit.
    (WebCore::CloseEventInit::CloseEventInit):
    (WebCore::CloseEvent::create):
    (WebCore::CloseEvent::CloseEvent):
    * websockets/CloseEvent.idl: Makes CloseEvent constructible.
    
    LayoutTests:
    
    * fast/dom/constructed-objects-prototypes-expected.txt: Now window has CloseEvent.
    * fast/events/constructors/close-event-constructor-expected.txt: Added.
    * fast/events/constructors/close-event-constructor.html: Added.
    * platform/chromium/test_expectations.txt: Skipped close-event-constructor.html, since V8 does not yet have the CloseEvent constructor.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    9dd03428