| Index: extensions/test/data/api_test/display_source/api/background.js
|
| diff --git a/extensions/test/data/api_test/display_source/api/background.js b/extensions/test/data/api_test/display_source/api/background.js
|
| index a54d6b5ea05a127efd3394586798054251324678..a10efe45a629608304ac5dfbc3c55f1f7298447d 100644
|
| --- a/extensions/test/data/api_test/display_source/api/background.js
|
| +++ b/extensions/test/data/api_test/display_source/api/background.js
|
| @@ -34,6 +34,25 @@ var testRequestAuthentication = function() {
|
| chrome.displaySource.requestAuthentication(1, callback);
|
| };
|
|
|
| +var testStartSessionErrorReport = function() {
|
| + var callback = function() {
|
| + chrome.test.assertLastError('Invalid stream arguments');
|
| + chrome.test.succeed();
|
| + };
|
| + var session_info = { sinkId: 1, authenticationInfo: { method: "PBC" } };
|
| + chrome.displaySource.startSession(session_info, callback);
|
| +};
|
| +
|
| +var testTerminateSessionErrorReport = function() {
|
| + var callback = function() {
|
| + chrome.test.assertLastError('Session not found');
|
| + chrome.test.succeed();
|
| + };
|
| + chrome.displaySource.terminateSession(1, callback);
|
| +};
|
| +
|
| chrome.test.runTests([testGetAvailableSinks,
|
| testOnSinksUpdated,
|
| - testRequestAuthentication]);
|
| + testRequestAuthentication,
|
| + testStartSessionErrorReport,
|
| + testTerminateSessionErrorReport]);
|
|
|