File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
java/test/com/thoughtworks/selenium/webdriven Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,13 @@ public void testCallingStopThenSleepDoesNotCauseAnExceptionToBeThrown() {
70
70
selenium .stop ();
71
71
72
72
try {
73
- // Now schedule a command that caues "interrupt" to be thrown internally.
73
+ // Now schedule a command that causes "interrupt" to be thrown internally.
74
74
selenium .isElementPresent ("name=q" );
75
75
fail ("This test should have failed" );
76
- } catch (NullPointerException expected ) {
76
+ } catch (NullPointerException | IllegalStateException expected ) {
77
77
// This is the exception thrown by selenium 1. We should throw the same
78
78
// one
79
+ // IllegalStateException is what the timer throws when it has been stopped
79
80
}
80
81
81
82
try {
You can’t perform that action at this time.
0 commit comments