| 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 8a9807751b9b47f055c52540704ed82d91040a19..332a85ea7019a621739339f7a0611c7ee4d77c2e 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
|
| @@ -750,15 +750,14 @@ function testExecuteScriptFail() {
|
| var webview = document.createElement('webview');
|
| document.body.appendChild(webview);
|
| setTimeout(function() {
|
| - try {
|
| webview.executeScript(
|
| - {code:'document.body.style.backgroundColor = "red";'},
|
| - function(results) {
|
| - embedder.test.fail();
|
| - });
|
| - } catch (e) {
|
| + {code:'document.body.style.backgroundColor = "red";'},
|
| + function(results) {
|
| + embedder.test.fail();
|
| + });
|
| + setTimeout(function() {
|
| embedder.test.succeed();
|
| - }
|
| + }, 0);
|
| }, 0);
|
| }
|
|
|
|
|