File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/org/openqa/selenium/remote
test/org/openqa/selenium/qtwebkit/nativetests Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public void stop() {
7373 public PlayerState getState () {
7474 Number response = (Number )driverExecuteMethod
7575 .execute (QtWebKitDriverCommand .GET_PLAYER_STATE , ImmutableMap .of ("id" , id ));
76- PlayerState state = PlayerState .values ()[(( Long ) response ) .intValue ()];
76+ PlayerState state = PlayerState .values ()[response .intValue ()];
7777 return state ;
7878 }
7979
Original file line number Diff line number Diff line change @@ -70,13 +70,13 @@ public void testRemotePlayerSeek() {
7070 player .setState (Player .PlayerState .playing );
7171
7272 try {
73- Thread .sleep (20000 );
73+ Thread .sleep (5000 );
7474 } catch (InterruptedException ex ) {
7575 }
7676
7777 player .setState (Player .PlayerState .paused );
78- player .seek (10 .5 );
79- assertEquals (10 .5 , player .getCurrentPlayingPosition (), 0.1 );
78+ player .seek (1 .5 );
79+ assertEquals (1 .5 , player .getCurrentPlayingPosition (), 0.1 );
8080 player .setState (Player .PlayerState .playing );
8181 }
8282
You can’t perform that action at this time.
0 commit comments