Skip to content
Snippets Groups Projects
Commit 93cb27f8 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Mooving test files into test_data

parent 4aba7402
No related branches found
No related tags found
No related merge requests found
......@@ -26,8 +26,6 @@ if [ x"$hostname" == x"cifarm-mac-node.mpi-cbg.de" ]; then
fi
pwd
ls
ls test_data/csv_out_test.csv
./build/src/io
......
......@@ -124,7 +124,7 @@ BOOST_AUTO_TEST_CASE( google_chart )
//! [Producing an Histogram graph]
bool test = compare("gc_out.html","gc_out_test.html");
bool test = compare("gc_out.html","test_data/gc_out_test.html");
BOOST_REQUIRE_EQUAL(true,test);
}
......@@ -173,7 +173,7 @@ BOOST_AUTO_TEST_CASE( google_chart2 )
cg.AddHistGraph(x,y,yn,options);
cg.write("gc_out2.html");
bool test = compare("gc_out2.html","gc_out2_test.html");
bool test = compare("gc_out2.html","test_data/gc_out2_test.html");
BOOST_REQUIRE_EQUAL(true,test);
}
......@@ -221,7 +221,7 @@ BOOST_AUTO_TEST_CASE( google_chart3 )
cg.AddHistGraph(x,y,yn,options);
cg.write("gc_out3.html");
bool test = compare("gc_out3.html","gc_out3_test.html");
bool test = compare("gc_out3.html","test_data/gc_out3_test.html");
BOOST_REQUIRE_EQUAL(true,test);
}
......@@ -262,7 +262,7 @@ BOOST_AUTO_TEST_CASE( google_chart4 )
cg.AddHistGraph(x,y,yn);
cg.write("gc_out4.html");
bool test = compare("gc_out4.html","gc_out4_test.html");
bool test = compare("gc_out4.html","test_data/gc_out4_test.html");
BOOST_REQUIRE_EQUAL(true,test);
}
......@@ -295,7 +295,7 @@ BOOST_AUTO_TEST_CASE( google_chart5 )
cg.AddHistGraph(x,y);
cg.write("gc_out5.html");
bool test = compare("gc_out5.html","gc_out5_test.html");
bool test = compare("gc_out5.html","test_data/gc_out5_test.html");
BOOST_REQUIRE_EQUAL(true,test);
}
......@@ -320,7 +320,7 @@ BOOST_AUTO_TEST_CASE( google_chart6 )
cg.AddHistGraph(y);
cg.write("gc_out6.html");
bool test = compare("gc_out6.html","gc_out6_test.html");
bool test = compare("gc_out6.html","test_data/gc_out6_test.html");
BOOST_REQUIRE_EQUAL(true,test);
}
......@@ -383,7 +383,7 @@ BOOST_AUTO_TEST_CASE( google_chart_with_inject_HTML )
//! [Producing a set of histograms graphs]
bool test = compare("gc_out7.html","gc_out7_test.html");
bool test = compare("gc_out7.html","test_data/gc_out7_test.html");
BOOST_REQUIRE_EQUAL(true,test);
}
......@@ -437,7 +437,7 @@ BOOST_AUTO_TEST_CASE( google_chart_number )
//! [Producing a set of histograms graphs]
bool test = compare("gc_num_plot.html","gc_num_plot_test.html");
bool test = compare("gc_num_plot.html","test_data/gc_num_plot_test.html");
BOOST_REQUIRE_EQUAL(true,test);
}
......@@ -503,7 +503,7 @@ BOOST_AUTO_TEST_CASE( google_chart_number_lines_different_x )
//! [Producing a set of histograms graphs]
bool test = compare("gc_num_ydif_plot.html","gc_num_ydif_plot_test.html");
bool test = compare("gc_num_ydif_plot.html","test_data/gc_num_ydif_plot_test.html");
BOOST_REQUIRE_EQUAL(true,test);
}
......@@ -570,7 +570,7 @@ BOOST_AUTO_TEST_CASE( google_chart_linear_plot )
//! [Producing lines graph with style]
bool test = compare("gc_plot_out.html","gc_plot_out_test.html");
bool test = compare("gc_plot_out.html","test_data/gc_plot_out_test.html");
BOOST_REQUIRE_EQUAL(true,test);
}
......@@ -619,7 +619,7 @@ BOOST_AUTO_TEST_CASE( google_chart_linear_plot2 )
//! [Producing lines]
bool test = compare("gc_plot2_out.html","gc_plot2_out_test.html");
bool test = compare("gc_plot2_out.html","test_data/gc_plot2_out_test.html");
BOOST_REQUIRE_EQUAL(true,test);
}
......
<html>
<head>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript">
google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawVisualization);
function exportToSVG(i)
{
var e = document.getElementById('chart_div'+i);
var svg = e.getElementsByTagName('svg')[0].parentNode.innerHTML;
var pos = svg.lastIndexOf("</svg>");
pos += 6;
svg = svg.substring(0,4) + " xmlns='http://www.w3.org/2000/svg' xmlns:xlink= 'http://www.w3.org/1999/xlink' " + svg.substring(4,pos);
svgData = 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(svg);
$(this).attr({'href': svgData,'target': '_blank'});
}
function drawVisualization() {
var data0 = new google.visualization.DataTable();
data0.addColumn('number','X Axis');
data0.addColumn('number','dataset1');
data0.addColumn('number','dataset2');
data0.addColumn('number','dataset3');
data0.addColumn('number','dataset4');
data0.addRows([
[0.1,2,3,5,6],
[0.2,5,6,1,6],
[0.3,2,1,6,9],
[0.4,1,6,3,2],
[0.5,3,3,0,6],
[0.6,2,1,4,6],
]);
var options0= {
title : 'Example',
vAxis: {title: 'Y Axis'},
hAxis: {title: 'X Axis'},
curveType: 'function',
lineWidth: 4,
intervals: { 'style':'area' }};
$("#export_svg0").on("click", function (event) {exportToSVG.apply(this,[0]);});
var chart = new google.visualization.ComboChart(document.getElementById('chart_div0'));
chart.draw(data0, options0);
}</script>
</head>
<body>
<a href="#" download="graph1.svg" id="export_svg0"><button>Export data into svg</button></a><div id="chart_div0" style="width: 900px; height: 500px;"></div>
</body>
</html>
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment