| Index: chrome/test/data/extensions/platform_apps/web_view/main.js
|
| diff --git a/chrome/test/data/extensions/platform_apps/web_view/main.js b/chrome/test/data/extensions/platform_apps/web_view/main.js
|
| index d17f7bd0450a4a1d1d9a8aba35549a7118a73188..4589acb0a9d30fa95b6027baf23cfe65661132e0 100644
|
| --- a/chrome/test/data/extensions/platform_apps/web_view/main.js
|
| +++ b/chrome/test/data/extensions/platform_apps/web_view/main.js
|
| @@ -205,6 +205,21 @@ onload = function() {
|
| chrome.test.succeed();
|
| }
|
| }, 0);
|
| + },
|
| +
|
| + function webViewExecuteScript() {
|
| + var webview = document.createElement('webview');
|
| + webview.addEventListener('loadstop', function() {
|
| + webview.executeScript(
|
| + {code:'document.body.style.backgroundColor = "red";'},
|
| + function(results) {
|
| + chrome.test.assertEq(1, results.length);
|
| + chrome.test.assertEq('red', results[0]);
|
| + chrome.test.succeed();
|
| + });
|
| + });
|
| + webview.setAttribute('src', 'data:text/html,trigger navigation');
|
| + document.body.appendChild(webview);
|
| }
|
| ]);
|
| };
|
|
|