| Index: extensions/test/data/app_view/apitest/main.js
|
| diff --git a/extensions/test/data/app_view/apitest/main.js b/extensions/test/data/app_view/apitest/main.js
|
| index bbff36b66442c2bbcb279393874761ece88f64e4..4bc514dc1574c57a0afa9be211bd4dc28d9c3772 100644
|
| --- a/extensions/test/data/app_view/apitest/main.js
|
| +++ b/extensions/test/data/app_view/apitest/main.js
|
| @@ -69,6 +69,23 @@ function testAppViewGoodDataShouldSucceed(appToEmbed) {
|
| });
|
| };
|
|
|
| +function testAppViewMediaRequest(appToEmbed) {
|
| + var appview = new AppView();
|
| + window.console.log('appToEmbed ' + appToEmbed);
|
| + document.body.appendChild(appview);
|
| + window.console.log('Attempting to connect to app.');
|
| + appview.connect(appToEmbed, {}, function(success) {
|
| + // Make sure we don't fail.
|
| + if (!success) {
|
| + window.console.log('Failed to connect.');
|
| + embedder.test.fail();
|
| + return;
|
| + }
|
| + window.console.log('Connected.');
|
| + embedder.test.succeed();
|
| + });
|
| +};
|
| +
|
| function testAppViewRefusedDataShouldFail(appToEmbed) {
|
| var appview = new AppView();
|
| LOG('appToEmbed ' + appToEmbed);
|
| @@ -117,6 +134,7 @@ function testAppViewWithUndefinedDataShouldSucceed(appToEmbed) {
|
|
|
| embedder.test.testList = {
|
| 'testAppViewGoodDataShouldSucceed': testAppViewGoodDataShouldSucceed,
|
| + 'testAppViewMediaRequest': testAppViewMediaRequest,
|
| 'testAppViewRefusedDataShouldFail': testAppViewRefusedDataShouldFail,
|
| 'testAppViewWithUndefinedDataShouldSucceed':
|
| testAppViewWithUndefinedDataShouldSucceed
|
|
|