Skip to content
  • weinig@apple.com's avatar
    Document.createEvent should support all the interfaces of Event we got · 1a8cc9d9
    weinig@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=67568
    
    Reviewed by Anders Carlsson.
    
    Source/WebCore: 
    
    Updated fast/events/event-creation.html
    
    * dom/BeforeLoadEvent.h:
    (WebCore::BeforeLoadEvent::create):
    (WebCore::BeforeLoadEvent::BeforeLoadEvent):
    Added empty create.
            
    * dom/Document.cpp:
    (WebCore::Document::createEvent):
    Add missing interfaces.
    
    * dom/HashChangeEvent.h:
    (WebCore::HashChangeEvent::create):
    (WebCore::HashChangeEvent::HashChangeEvent):
    Added empty create.
    
    * page/SpeechInputEvent.cpp:
    (WebCore::SpeechInputEvent::create):
    (WebCore::SpeechInputEvent::SpeechInputEvent):
    (WebCore::SpeechInputEvent::~SpeechInputEvent):
    * page/SpeechInputEvent.h:
    Added empty create.
    
    LayoutTests: 
    
    * fast/events/event-creation.html:
    Converted to shouldBe style test, changed prototype check to us instanceof and constructor check,
    added enumeration based catchall.
    
    * fast/events/event-instanceof-expected.txt: Removed.
    * fast/events/event-instanceof.html: Removed.
    * fast/events/script-tests/event-instanceof.js: Removed.
    Moved contents to fast/events/event-creation.html.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    1a8cc9d9