WebSpeech: event.elapsedTime is always 1364484608
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Apr 2013 21:54:22 +0000 (21:54 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Apr 2013 21:54:22 +0000 (21:54 +0000)
commitdf6db6843641c663e7fbf3ca2ebb81376e8c68a2
treeb50d822253f0ee0ee83d1740ba1bd5bf48f4971a
parent38ea3f407ca4388ab6fb6032ea77aafba722e5a9
WebSpeech: event.elapsedTime is always 1364484608
https://bugs.webkit.org/show_bug.cgi?id=114045

Reviewed by Tim Horton.

Source/WebCore:

We were calculating elapsed time incorrectly.

Test: platform/mac/fast/speechsynthesis/speech-synthesis-elapsed-time.html

* Modules/speech/SpeechSynthesis.cpp:
(WebCore::SpeechSynthesis::fireEvent):

LayoutTests:

* platform/mac/fast/speechsynthesis/speech-synthesis-elapsed-time-expected.txt: Added.
* platform/mac/fast/speechsynthesis/speech-synthesis-elapsed-time.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@147801 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/mac/fast/speechsynthesis/speech-synthesis-elapsed-time-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/fast/speechsynthesis/speech-synthesis-elapsed-time.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/Modules/speech/SpeechSynthesis.cpp