| Index: extensions/test/data/web_view/apitest/main.js
|
| diff --git a/extensions/test/data/web_view/apitest/main.js b/extensions/test/data/web_view/apitest/main.js
|
| index b20302508564e5402717302b2632b25869ea782d..983212cc0910060ed74a200278aba3129f50e490 100644
|
| --- a/extensions/test/data/web_view/apitest/main.js
|
| +++ b/extensions/test/data/web_view/apitest/main.js
|
| @@ -1682,28 +1682,6 @@
|
| return {cancel: true};
|
| }, { urls: ['<all_urls>']}, ['blocking']) ;
|
| webview.src = 'http://clients6.google.com';
|
| - document.body.appendChild(webview);
|
| -}
|
| -
|
| -// This is a basic test to verify that image data is returned by
|
| -// captureVisibleRegion().
|
| -function testCaptureVisibleRegion() {
|
| - var webview = document.createElement('webview');
|
| - webview.setAttribute('src', 'data:text/html,webview test');
|
| -
|
| - webview.addEventListener('loadstop', function(e) {
|
| - webview.captureVisibleRegion({}, function(imgdata) {
|
| - if (chrome.runtime.lastError) {
|
| - console.log('webview.apitest.testCaptureVisibleRegion: ' +
|
| - chrome.runtime.lastError.message);
|
| - embedder.test.fail();
|
| - } else {
|
| - embedder.test.assertTrue(
|
| - imgdata.indexOf('data:image/jpeg;base64') == 0);
|
| - embedder.test.succeed();
|
| - }
|
| - });
|
| - });
|
| document.body.appendChild(webview);
|
| }
|
|
|
| @@ -1774,8 +1752,7 @@
|
| 'testWebRequestAPI': testWebRequestAPI,
|
| 'testWebRequestAPIWithHeaders': testWebRequestAPIWithHeaders,
|
| 'testWebRequestAPIExistence': testWebRequestAPIExistence,
|
| - 'testWebRequestAPIGoogleProperty': testWebRequestAPIGoogleProperty,
|
| - 'testCaptureVisibleRegion' : testCaptureVisibleRegion
|
| + 'testWebRequestAPIGoogleProperty': testWebRequestAPIGoogleProperty
|
| };
|
|
|
| onload = function() {
|
|
|