aboutsummaryrefslogtreecommitdiff
path: root/e2e/ambassador/src/background/tabs.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-05-13 00:12:11 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-05-13 01:01:10 +0900
commit5617f6f7650e0eb5711bea5b060e98f0d2e94f46 (patch)
tree6e7a1f48f82c15beddd0015c1a63ee3df0675d38 /e2e/ambassador/src/background/tabs.js
parent82aad419a74a3061247d4e82656fa711e63f213c (diff)
Add e2e test cases for deleting tabs
Diffstat (limited to 'e2e/ambassador/src/background/tabs.js')
-rw-r--r--e2e/ambassador/src/background/tabs.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/e2e/ambassador/src/background/tabs.js b/e2e/ambassador/src/background/tabs.js
index 37156c4..5594134 100644
--- a/e2e/ambassador/src/background/tabs.js
+++ b/e2e/ambassador/src/background/tabs.js
@@ -5,7 +5,9 @@ const create = (props = {}) => {
if (tab.url !== 'about:blank' && tabId === createdTab.id &&
changeInfo.status === 'complete') {
browser.tabs.onUpdated.removeListener(callback);
- setTimeout(() => resolve(tab), 50) // wait for 50 milliseconds to ensure plugin loaded;
+
+ // wait for 50 milliseconds to ensure plugin loaded;
+ setTimeout(() => resolve(tab), 50);
}
};
browser.tabs.onUpdated.addListener(callback);