DescriptionCurrent layout tests for ActiveIntervalTimer use setTimeout, this would enable it to be suspended and fired manually for testing as well as eliminate flakiness.
A more generalized solution for testing Timers would require adding some sort of reflection and/or a mocked system clock.
BUG=319529
Patch Set 1 #
Total comments: 8
Patch Set 2 : Rename methods and handle pending fires #
Total comments: 14
Patch Set 3 : Address comments #Patch Set 4 : Rebase ToT #Patch Set 5 : Remove FINAL from Timer declaration. #
Total comments: 2
Patch Set 6 : Naming change #Messages
Total messages: 17 (0 generated)
|