| Index: chrome/browser/resources/chromeos/chromevox/testing/chromevox_next_e2e_test_base.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/testing/chromevox_next_e2e_test_base.js b/chrome/browser/resources/chromeos/chromevox/testing/chromevox_next_e2e_test_base.js
|
| index 038155fe3dff1d8360f4b18982d0b3adaa94ee40..e432a998de5f9d711f04ff24f136c4ef8509eeee 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/testing/chromevox_next_e2e_test_base.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/testing/chromevox_next_e2e_test_base.js
|
| @@ -32,14 +32,7 @@
|
| runWithAutomation: function(doc, callback) {
|
| this.runWithDocument(doc, function() {
|
| chrome.automation.getTree(function(root) {
|
| - if (root.children.length == 0) {
|
| - root.addEventListener('loadComplete',
|
| - function() {
|
| - callback(root);
|
| - }.bind(this), true);
|
| - } else {
|
| - callback(root);
|
| - }
|
| + callback(root);
|
| }.bind(this));
|
| }.bind(this));
|
| }
|
|
|