Chromium Code Reviews
DescriptionViews:: Use TestClipboard in ScopedViewsTestHelper.
Currently the behavior of any views_unittest which depends on clipboard is
flaky. This is because the Clipboard is a global/shared resource. Hence when
multiple tests are run in parallel, one test can modify the clipboard state,
causing another test to flake. This CL sets up a TestClipboard instance in the
ScopedViewsTestHelper. This should fix various flaky views_unittests, for
example:
- ViewTest.TextfieldCutCopyPaste
- TextfieldTest.ReadOnlyTest
- TextfieldTest.CutCopyPaste
- TextfieldTest.PasswordTest
etc.
The following tests (disabled due to flaky selection clipboard behavior) are re-
enabled:
- LabelSelectionTest.SelectionClipboard
- TextfieldTest.SelectionClipboard
- TextfieldTest.SelectionClipboard_Password
BUG=623442, 396477
Committed: https://crrev.com/80f0522d703aaf59ccbe0cb53f1eb8574187a265
Cr-Commit-Position: refs/heads/master@{#432659}
Patch Set 1 #Patch Set 2 #
Total comments: 2
Dependent Patchsets: Messages
Total messages: 17 (10 generated)
|
|||||||||||||||||||||||||||||||||||||