forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix LockScreenNoteTakingTest.DataAvailableOnRestart
The test has PRE_DataAvailableOnRestart part which creates a note in lock screen note storage. DataAvailableOnRestart then verifies that a onDataItemsAvailable event is dispatched as the user session is started. The event is dispatched early on during the test - before the test body is run, which means there is no guarantee that a result catcher created in the test body will be created before the test app runs all the tests, and thus it might miss a test result message. To fix the issue, update the LockScreenNoteTakingTest setup to create a result catcher just after the browser main parts are created - this should be early enough to catch any messages from the test app (i.e. before the event observed by the test app is dispatched), but late enough to have NotificationService available (without it extensions::ResultCatcher cannot be created). BUG=901616 Change-Id: I58b3ccda9b93bc355bab7fb1f24e2d4a769c44d8 Reviewed-on: https://chromium-review.googlesource.com/c/1324870 Commit-Queue: Toni Baržić <tbarzic@chromium.org> Reviewed-by: James Cook <jamescook@chromium.org> Cr-Commit-Position: refs/heads/master@{#606277}
- Loading branch information
Toni Barzic
authored and
Commit Bot
committed
Nov 8, 2018
1 parent
df72f9b
commit a050208
Showing
1 changed file
with
33 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters