Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change directory path and fix corrupted image #323

Merged
merged 2 commits into from
Jun 17, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private void generateDateSource( )
PrintWriter writer;
try
{
writer = new PrintWriter( new FileOutputStream( "d:/test.csv", false ) );
writer = new PrintWriter( new FileOutputStream( "./test.csv", false ) );
writer.println( "string1,string2,string3,date1,date2,date3,int1,int2,int3,float1,float2,float3");
StringBuilder builder = new StringBuilder( );
for ( int i = 0; i < 100000; i++ )
Expand Down Expand Up @@ -184,7 +184,7 @@ private void test( int data ) throws EngineException, Exception
createReportDocument1( data );
long time1 = 0;
long time2 = 0;
PrintWriter writer = new PrintWriter( new FileOutputStream( "d:/performance.txt", true ) );
PrintWriter writer = new PrintWriter( new FileOutputStream( "./performance.txt", true ) );
for( int i = 0; i < 50; i++ )
{
time1 += doRenderTest1( false );
Expand Down Expand Up @@ -226,7 +226,7 @@ protected long doRenderTest1( boolean usingFilterStream ) throws Exception
// get the page number
IRenderOption option = new HTMLRenderOption( );
option.setOutputFormat( "html" ); //$NON-NLS-1$
OutputStream out = new FileOutputStream( "d:/test.html" );
OutputStream out = new FileOutputStream( "./test.html" );
if( usingFilterStream )
{
out = new CounterOutputStream( out );
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void testHtmlImageScale( ) throws Exception
}, {
"2.083in", "1.604in"
}, {
"1.354in", "1.604in"
"1.353in", "1.604in"
}, {
"0.833in", "2.469in"
}, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public abstract class BaseEmitter extends EngineCase implements IContentEmitter
private String inPath = this.genInputFolder( ) + "/";
private String outPath = this.genOutputFolder( ) + "/";

protected final static String EMITTER_HTML = "emitter_html";
protected final static String EMITTER_HTML = "html";
protected final static String EMITTER_PDF = "emitter_pdf";

protected abstract String getReportName( );
Expand Down