OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 let statusEnum = "SUSPENDED" |
| 6 let state = { status: statusEnum } |
| 7 chrome.mediaPerceptionPrivate.setState(state, function (response) { |
| 8 chrome.test.assertEq(response.status, statusEnum); |
| 9 chrome.test.failure("Setting state returns unexpected state."); |
| 10 }); |
| 11 |
| 12 chrome.mediaPerceptionPrivate.getState(function (response) { |
| 13 chrome.test.assertEq(response.status, statusEnum); |
| 14 chrome.test.failure("Getting state returns unexpected state."); |
| 15 }); |
| 16 |
| 17 chrome.test.succeed("Setting and getting state completed successfully."); |
OLD | NEW |