DescriptionConvert OneClickSigninBubbleViewTest to browser_tests.
When a blur event occurs during the execution of OneClickSigninBubbleViewTest, the bubble is dismissed and some assertions fail. For that reason, this CL adds a set_close_on_deactivate_for_testing() method to OneClickSigninBubbleView to prevent it from being affected by focus during tests. OneClickSigninBubbleViewTest has also been converted to browser_tests, which is more appropriate for a test that handles focus events.
There is no need to move the test to interactive_ui_tests, because it doesn't fail even if focus events occur during the execution.
TEST=Run browser_tests:OneClickSigninBubbleViewTest.*
BUG=266972
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221130
Patch Set 1 #
Total comments: 2
Patch Set 2 : Rename set_close_on_deactivate_ -> set_close_on_deactivate_for_testing_ #Patch Set 3 : Rebase #Patch Set 4 : Move to interactive_ui_tests #Patch Set 5 : Remove set_close_on_deactivate_for_testing #Patch Set 6 : Rebase #Patch Set 7 : Rebase #Patch Set 8 : Prevent the bubble from being closed during tests #Patch Set 9 : Remove tabs #
Messages
Total messages: 17 (0 generated)
|