File tree 2 files changed +6
-3
lines changed
src/net/sourceforge/htmlunit
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ Ahmed Ashour
43
43
<ant antfile =" src/build.xml" target =" junit" />
44
44
</target >
45
45
46
- <target name =" repackage" depends =" clean-compile " >
46
+ <target name =" repackage" depends =" test " >
47
47
<property name =" corejs.dir" value =" ${ repackaged-rhino.dir } /src/net/sourceforge/htmlunit/corejs" />
48
48
49
49
<mkdir dir =" ${ corejs.dir } " />
Original file line number Diff line number Diff line change @@ -20,11 +20,14 @@ public class StackTraceTest {
20
20
*/
21
21
@ Test
22
22
public void testFailureStackTrace () {
23
+ final String lineSeparator = System .getProperty ("line.separator" );
23
24
final String source1 = "function f2() { throw 'hello'; }; f2();" ;
24
25
final String source2 = "function f2() { 'H'.toLowerCase(); throw 'hello'; }; f2();" ;
25
26
26
- runWithExpectedStackTrace (source1 , " at test.js (f2)\n \t at test.js\n " ); // works
27
- runWithExpectedStackTrace (source2 , " at test.js (f2)\n \t at test.js\n " ); // fails
27
+ runWithExpectedStackTrace (source1 ,
28
+ " at test.js (f2)" + lineSeparator + "\t at test.js" + lineSeparator ); // works
29
+ runWithExpectedStackTrace (source2 ,
30
+ " at test.js (f2)" + lineSeparator + "\t at test.js" + lineSeparator ); // fails
28
31
}
29
32
30
33
private void runWithExpectedStackTrace (final String _source , final String _expectedStackTrace ) {
You can’t perform that action at this time.
0 commit comments