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

Unified Diff: chrome/test/data/extensions/platform_apps/modal_dialogs/test.js

Issue 9195018: Disable modal JavaScript dialogs for platform apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/platform_apps/modal_dialogs/test.js
diff --git a/chrome/test/data/extensions/platform_apps/modal_dialogs/test.js b/chrome/test/data/extensions/platform_apps/modal_dialogs/test.js
new file mode 100644
index 0000000000000000000000000000000000000000..2b015eaba5a4a1dbbe475a6f5690f3f4e17dd10c
--- /dev/null
+++ b/chrome/test/data/extensions/platform_apps/modal_dialogs/test.js
@@ -0,0 +1,20 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+chrome.test.runTests([
+ function testAlert() {
+ alert("You shouldn't see this.... woot!");
+ chrome.test.succeed();
+ },
+
+ function testConfirm() {
+ chrome.test.assertFalse(confirm("Should this test fail?"));
+ chrome.test.succeed();
+ },
+
+ function testPrompt() {
+ chrome.test.assertEq(null, prompt("Return null to pass!"));
+ chrome.test.succeed();
+ }
+]);

Powered by Google App Engine
This is Rietveld 408576698