| 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 64102f698445a6fd2e0d4e41420579ea365e88b8..78fb914f248ef3d3e979a90bd4c5b8e1c634623c 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
|
| @@ -507,7 +507,9 @@ function testDestroyOnEventListener() {
|
| if (url != e.url)
|
| return;
|
| ++loadCommitCount;
|
| - if (loadCommitCount == 1) {
|
| + if (loadCommitCount == 2) {
|
| + // Pass in a timeout so that we can catch if any additional loadcommit
|
| + // occurs.
|
| setTimeout(function() {
|
| embedder.test.succeed();
|
| }, 0);
|
| @@ -518,10 +520,12 @@ function testDestroyOnEventListener() {
|
|
|
| // The test starts from here, by setting the src to |url|.
|
| webview.addEventListener('loadcommit', function(e) {
|
| + window.console.log('loadcommit1');
|
| webview.parentNode.removeChild(webview);
|
| loadCommitCommon(e);
|
| });
|
| webview.addEventListener('loadcommit', function(e) {
|
| + window.console.log('loadcommit2');
|
| loadCommitCommon(e);
|
| });
|
| webview.setAttribute('src', url);
|
|
|