| Index: Source/testing/runner/NotificationPresenter.cpp
|
| diff --git a/Source/testing/runner/NotificationPresenter.cpp b/Source/testing/runner/NotificationPresenter.cpp
|
| index f8816e703dbc32fa4ca7c0a73f897e532dfa1327..832f26e41c7f6588a3277cd15b52c6ca75f82aaa 100644
|
| --- a/Source/testing/runner/NotificationPresenter.cpp
|
| +++ b/Source/testing/runner/NotificationPresenter.cpp
|
| @@ -90,6 +90,14 @@ bool NotificationPresenter::simulateClick(const WebString& title)
|
| return true;
|
| }
|
|
|
| +void NotificationPresenter::cancelAllActiveNotifications()
|
| +{
|
| + while (!m_activeNotifications.empty()) {
|
| + const WebNotification& notification = m_activeNotifications.begin()->second;
|
| + cancel(notification);
|
| + }
|
| +}
|
| +
|
| // The output from all these methods matches what DumpRenderTree produces.
|
| bool NotificationPresenter::show(const WebNotification& notification)
|
| {
|
|
|