OLD | NEW |
---|---|
(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.commands.onCommand.addListener(function(command) { | |
6 if (command == "command_B") { | |
7 chrome.test.notifyPass(); | |
8 return; | |
9 } | |
10 | |
11 // Everything else is a failure case. | |
12 chrome.test.notifyFail("Unexpected command received: " + command); | |
13 }); | |
14 | |
15 chrome.test.notifyPass(); | |
OLD | NEW |