Chromium Code Reviews| Index: chrome/test/data/extensions/platform_apps/web_view/content_script_whitelisted/main.js |
| diff --git a/chrome/test/data/extensions/platform_apps/web_view/content_script_whitelisted/main.js b/chrome/test/data/extensions/platform_apps/web_view/content_script_whitelisted/main.js |
| index 8003fbebdee7e785a6dfac52151bebed3740d3d4..f8749bc783c1c66fc349d066ae9bba62773af85f 100644 |
| --- a/chrome/test/data/extensions/platform_apps/web_view/content_script_whitelisted/main.js |
| +++ b/chrome/test/data/extensions/platform_apps/web_view/content_script_whitelisted/main.js |
| @@ -3,7 +3,7 @@ |
| // found in the LICENSE file. |
| // This test makes sure webview properly loads and content script is run. |
| -onload = function() { |
| +document.addEventListener("DOMContentLoaded", function() { |
|
Devlin
2017/03/02 02:33:17
nit: prefer single quotes
but also, why this chang
Kunihiko Sakamoto
2017/03/06 09:11:05
This test failed when content script is injected b
|
| var contentScriptRan = false; |
| var webviewLoaded = false; |
| @@ -42,4 +42,4 @@ onload = function() { |
| webview.setAttribute( |
| 'src', 'data:text/html,<html><body>tear down test</body></html>'); |
| document.body.appendChild(webview); |
| -}; |
| +}); |