Index: chrome/test/data/extensions/platform_apps/modal_dialogs/background.js |
diff --git a/chrome/test/data/extensions/platform_apps/modal_dialogs/background.js b/chrome/test/data/extensions/platform_apps/modal_dialogs/background.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2b015eaba5a4a1dbbe475a6f5690f3f4e17dd10c |
--- /dev/null |
+++ b/chrome/test/data/extensions/platform_apps/modal_dialogs/background.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(); |
+ } |
+]); |