Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Unified Diff: chrome/test/data/extensions/platform_apps/web_view/shim/main.js

Issue 715583007: Various webview cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698