In DRT, the speech input mock is currently held by LayoutTestController and when a mock result is set the value stays as is across all subsequent tests until overwritten. In preparation for a future CL where we'll be having a list of mock results instead of just 1, I'm adding a 'clearResults' method to the mock and invoking it before each test. This also required moving the mock from LayoutTestController to WebViewHost because WebViewHost::reset() is the place to do this type of work.
Created attachment 74104 [details] Patch
Created attachment 74107 [details] Patch
Comment on attachment 74107 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=74107&action=review r=me > WebKitTools/DumpRenderTree/chromium/WebViewHost.cpp:1174 > + if (m_speechInputControllerMock.get()) don't need .get()
Committed r72206: <http://trac.webkit.org/changeset/72206>
Committed r72214: <http://trac.webkit.org/changeset/72214>
(In reply to comment #5) > Committed r72214: <http://trac.webkit.org/changeset/72214> Oops, that wasn't supposed to happen (ChangeLog got merged wrong, didn't notice before using webkit-patch land)