-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=67537 Patch by Kentaro Hara <haraken@google.com> on 2011-09-08 Reviewed by Sam Weinig. Source/WebCore: The spec for the ProgressEvent constructor is here: http://www.w3.org/TR/progress-events/#interface-progressevent Test: fast/events/constructors/progress-event-constructor.html * bindings/generic/EventConstructors.h: Added a definition for the ProgressEvent constructor. * bindings/js/JSDictionary.cpp: (WebCore::JSDictionary::convertValue): Converts an ECMA-262 Number into an IDL unsigned long long value. Spec: http://www.w3.org/TR/WebIDL/#es-unsigned-long-long * bindings/js/JSEventConstructors.cpp: Added #includes for ProgressEvent. * dom/ProgressEvent.cpp: (WebCore::ProgressEventInit::ProgressEventInit): (WebCore::ProgressEvent::ProgressEvent): * dom/ProgressEvent.h: Added a definition for ProgressEventInit. (WebCore::ProgressEvent::create): * dom/ProgressEvent.idl: Makes ProgressEvent constructible. LayoutTests: * fast/events/constructors/progress-event-constructor-expected.txt: Added. * fast/events/constructors/progress-event-constructor.html: Added. Checks the behavior of the ProgressEvent constructor. * platform/chromium/test_expectations.txt: Skipped progress-event-constructor.html, since V8 does not yet have the ProgressEvent constructor. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94771 268f45cc-cd09-0410-ab3c-d52691b4dbfc
f90548b9