diff options
author | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-22 00:34:37 +0000 |
---|---|---|
committer | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-22 00:34:37 +0000 |
commit | 9334377d11086b7445abe08b8950b183bb98b396 (patch) | |
tree | 1bdd73a1c8fe5a78d24814b388e1c3124793c743 /webkit/tools | |
parent | 52bbc9853337482da14ee86b7c274ceb7692199c (diff) | |
download | chromium_src-9334377d11086b7445abe08b8950b183bb98b396.zip chromium_src-9334377d11086b7445abe08b8950b183bb98b396.tar.gz chromium_src-9334377d11086b7445abe08b8950b183bb98b396.tar.bz2 |
Make the output of notification testing in test shell match that of WebKit DumpRenderTree in the event of empty fields, rather than printing (null).
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1697006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45269 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-rw-r--r-- | webkit/tools/test_shell/notification_presenter.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/webkit/tools/test_shell/notification_presenter.cc b/webkit/tools/test_shell/notification_presenter.cc index 2fc7a30..e0402d29 100644 --- a/webkit/tools/test_shell/notification_presenter.cc +++ b/webkit/tools/test_shell/notification_presenter.cc @@ -31,9 +31,12 @@ bool TestNotificationPresenter::show(const WebNotification& notification) { notification.url().spec().data()); } else { printf("DESKTOP NOTIFICATION: icon %s, title %s, text %s\n", - notification.iconURL().spec().data(), - notification.title().utf8().data(), - notification.body().utf8().data()); + notification.iconURL().isEmpty() ? "" : + notification.iconURL().spec().data(), + notification.title().isEmpty() ? "" : + notification.title().utf8().data(), + notification.body().isEmpty() ? "" : + notification.body().utf8().data()); } WebNotification event_target(notification); |