OLD | NEW |
(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 ]); |
OLD | NEW |