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

Side by Side Diff: chrome/test/data/extensions/platform_apps/modal_dialogs/background.js

Issue 9195018: Disable modal JavaScript dialogs for platform apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix spelling Created 8 years, 11 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 (c) 2012 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 testAlert() {
7 alert("You shouldn't see this.... woot!");
8 chrome.test.succeed();
9 },
10
11 function testConfirm() {
12 chrome.test.assertFalse(confirm("Should this test fail?"));
13 chrome.test.succeed();
14 },
15
16 function testPrompt() {
17 chrome.test.assertEq(null, prompt("Return null to pass!"));
18 chrome.test.succeed();
19 }
20 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698