Chromium Code Reviews| Index: chrome/test/data/extensions/platform_apps/web_view/shim/main.js |
| diff --git a/chrome/test/data/extensions/platform_apps/web_view/shim/main.js b/chrome/test/data/extensions/platform_apps/web_view/shim/main.js |
| index 3709a1b2cfda0d323fb30c38d906901d1fd785f2..eba5455f8f82b2eef0c2cc58037feaa8e2257685 100644 |
| --- a/chrome/test/data/extensions/platform_apps/web_view/shim/main.js |
| +++ b/chrome/test/data/extensions/platform_apps/web_view/shim/main.js |
| @@ -2959,6 +2959,27 @@ function testMailtoLink() { |
| document.body.appendChild(webview); |
| } |
| +// This test verifies that mailto links are enabled. |
|
Charlie Reis
2016/10/04 19:54:36
nit: Stale comment.
alexmos
2016/10/04 20:01:59
Done.
|
| +function testBlobURL() { |
| + var webview = new WebView(); |
| + var blob = new Blob(['<html><body>Blob content</body></html>'], |
| + {type: 'text/html'}); |
| + var blobURL = URL.createObjectURL(blob); |
| + webview.src = blobURL; |
| + |
| + webview.onloadabort = function() { |
| + // The blob: URL load should not trigger a loadabort. |
| + window.console.log('Blob URL load was aborted.'); |
| + embedder.test.fail(); |
| + }; |
| + webview.onloadstop = function() { |
| + embedder.test.assertTrue(webview.src == blobURL); |
| + embedder.test.succeed(); |
| + }; |
| + |
| + document.body.appendChild(webview); |
| +} |
| + |
| // This test navigates an unattached guest to 'about:blank', then it makes a |
| // renderer/ navigation to a URL that results in a server side redirect. In the |
| // end we verify that the redirected URL loads in the guest properly. |
| @@ -3115,7 +3136,8 @@ embedder.test.testList = { |
| 'testPDFInWebview': testPDFInWebview, |
| 'testMailtoLink': testMailtoLink, |
| 'testRendererNavigationRedirectWhileUnattached': |
| - testRendererNavigationRedirectWhileUnattached |
| + testRendererNavigationRedirectWhileUnattached, |
| + 'testBlobURL': testBlobURL |
| }; |
| onload = function() { |