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

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: Fix. 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
« no previous file with comments | « no previous file | extensions/renderer/resources/guest_view/web_view.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | extensions/renderer/resources/guest_view/web_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698