Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
rPraml committed May 20, 2021
1 parent c089b84 commit a9b4499
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions testsrc/org/mozilla/javascript/tests/Bug466207Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;

import junit.framework.TestCase;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.ScriptableObject;

import junit.framework.TestCase;

/**
* See https://bugzilla.mozilla.org/show_bug.cgi?id=466207
*
* @author Hannes Wallnoefer
*/
public class Bug466207Test extends TestCase {
Expand All @@ -37,9 +36,14 @@ protected void setUp() {
// get a js object as map
Context context = Context.enter();
ScriptableObject scope = context.initStandardObjects();
list = (List<Object>) context.evaluateString(scope,
"(['a', true, new java.util.HashMap(), 42, 'a']);",
"testsrc", 1, null);
list =
(List<Object>)
context.evaluateString(
scope,
"(['a', true, new java.util.HashMap(), 42, 'a']);",
"testsrc",
1,
null);
Context.exit();
}

Expand Down Expand Up @@ -110,7 +114,7 @@ private void compareListIterators(ListIterator<Object> it1, ListIterator<Object>
assertFalse(it2.hasPrevious());
compareIterators(it1, it2);
}

public void testSublist() {
assertTrue(Arrays.equals(list.subList(0, 5).toArray(), reference.toArray()));
assertTrue(Arrays.equals(list.subList(2, 4).toArray(), reference.subList(2, 4).toArray()));
Expand Down

0 comments on commit a9b4499

Please sign in to comment.