Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(494)

Side by Side Diff: chrome/test/data/extensions/api_test/notifications/no_html/background.js

Issue 13533019: Disables HTML notifications when rich notifications are enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Indentation in test fixed. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 chrome.test.runTests([
6 function HTMLNotificationNotFound() {
7 // createHTMLNotification should not be exposed.
8 if (window.webkitNotifications.createHTMLNotification)
9 chrome.test.fail("createHTMLNotification is found.");
10 else
11 chrome.test.succeed();
12 },
13 function TextNotificationFound() {
14 if (!window.webkitNotifications.createNotification)
15 chrome.test.fail("createNotification not found.");
16 else
17 chrome.test.succeed();
18 }
19 ]);
20
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698