| Index: Source/testing/runner/TestRunner.cpp
|
| diff --git a/Source/testing/runner/TestRunner.cpp b/Source/testing/runner/TestRunner.cpp
|
| index 550abc9573ce6521a49a78f3efe366b20a710aeb..01b9280632d95c9c1ca570b87b1cc2f99a9aa2bf 100644
|
| --- a/Source/testing/runner/TestRunner.cpp
|
| +++ b/Source/testing/runner/TestRunner.cpp
|
| @@ -284,6 +284,7 @@ TestRunner::TestRunner(TestInterfaces* interfaces)
|
| #if ENABLE_NOTIFICATIONS
|
| bindMethod("grantWebNotificationPermission", &TestRunner::grantWebNotificationPermission);
|
| bindMethod("simulateLegacyWebNotificationClick", &TestRunner::simulateLegacyWebNotificationClick);
|
| + bindMethod("cancelAllActiveNotifications", &TestRunner::cancelAllActiveNotifications);
|
| #endif
|
| bindMethod("addMockSpeechInputResult", &TestRunner::addMockSpeechInputResult);
|
| bindMethod("setMockSpeechInputDumpRect", &TestRunner::setMockSpeechInputDumpRect);
|
| @@ -1866,6 +1867,12 @@ void TestRunner::simulateLegacyWebNotificationClick(const CppArgumentList& argum
|
| }
|
| result->set(m_notificationPresenter->simulateClick(WebString::fromUTF8(arguments[0].toString())));
|
| }
|
| +
|
| +void TestRunner::cancelAllActiveNotifications(const CppArgumentList& arguments, CppVariant* result)
|
| +{
|
| + m_notificationPresenter->cancelAllActiveNotifications();
|
| + result->set(true);
|
| +}
|
| #endif
|
|
|
| void TestRunner::addMockSpeechInputResult(const CppArgumentList& arguments, CppVariant* result)
|
|
|