fune/browser/components/extensions/test
Bob Silverberg 0e9d7b7ac2 Bug 1381684 - Fix intermittent browser/components/extensions/test/browser/browser_ext_tabs_lastAccessed.js, r=mixedpuppy
This patch introduces two changes to the test:

1. It breaks apart the assertion that was combining three tests into individual assertions, so if this does
fail again in the future it will be easier to spot the actual problem.

2. It uses addTab and browserLoaded instead of openNewForegroundTab, which seems to allow the test to wait
long enough before starting the extension.

When I was able to reproduce the failure, after separating the assertions, I found the one that was failing
was the check that tab2.lastAccessed was less than the current time. I believe that the current time was being
recorded too soon, which is why I changed the test to not record the current time until after both tabs have
completed loading. This seems to fix the intermittent locally for me.

MozReview-Commit-ID: I3VoYODwjgz

--HG--
extra : rebase_source : 34729a3ae02e9266cf5aee63de293786403a46e9
2017-10-30 13:39:53 -04:00
..
browser Bug 1381684 - Fix intermittent browser/components/extensions/test/browser/browser_ext_tabs_lastAccessed.js, r=mixedpuppy 2017-10-30 13:39:53 -04:00
mochitest Bug 1322485 - Implement browser.tabs.discard API. r=mixedpuppy 2017-10-30 12:52:00 -04:00
xpcshell Bug 1413692 - Extensions page actions are pinned to address bar again and again. r=mixedpuppy 2017-11-06 21:19:26 -05:00