File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
java/client/test/org/openqa/selenium Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 31
31
import static org .junit .Assert .assertTrue ;
32
32
import static org .junit .Assert .fail ;
33
33
import static org .junit .Assume .assumeTrue ;
34
- import static org .openqa .selenium .testing .Driver .ALL ;
35
34
import static org .openqa .selenium .testing .Driver .CHROME ;
36
35
import static org .openqa .selenium .testing .Driver .FIREFOX ;
37
36
import static org .openqa .selenium .testing .Driver .HTMLUNIT ;
@@ -569,12 +568,11 @@ public void shouldHandleObjectThatThatHaveToJSONMethod() {
569
568
@ Ignore (SAFARI )
570
569
@ Ignore (value = FIREFOX , issue = "540" )
571
570
@ Ignore (HTMLUNIT )
572
- @ Ignore (value = MARIONETTE , issue = "https://github.com/mozilla/geckodriver/issues/914" )
573
571
public void shouldHandleRecursiveStructures () {
574
572
driver .get (pages .simpleTestPage );
575
573
576
- Object value = executeScript ( "var obj1 = {}; var obj2 = {}; obj1['obj2'] = obj2; obj2['obj1'] = obj1; return obj1" );
577
-
578
- assertTrue ( value instanceof Map );
574
+ Throwable t = catchThrowable (() -> executeScript (
575
+ "var obj1 = {}; var obj2 = {}; obj1['obj2'] = obj2; obj2['obj1'] = obj1; return obj1" ));
576
+ assertThat ( t , instanceOf ( JavascriptException . class ) );
579
577
}
580
578
}
You can’t perform that action at this time.
0 commit comments