Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Update test/suite
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Nov 4, 2014
1 parent 051e1c3 commit 51c3224
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions test/headless.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ TEST_P(HeadlessTest, render) {
std::string style = util::read_file(base_directory + "tests/" + base + "/style.json");
std::string info = util::read_file(base_directory + "tests/" + base + "/info.json");

std::size_t pos = 0;
while ((pos = style.find("local://", pos)) != std::string::npos) {
style.replace(pos, 8, "http://localhost:2900/");
}

// Parse style.
rapidjson::Document styleDoc;
styleDoc.Parse<0>((const char *const)style.c_str());
Expand Down
2 changes: 1 addition & 1 deletion test/suite
Submodule suite updated 97 files
+8 −8 tests/background-color/style.json
+4 −4 tests/background-image/style.json
+9 −9 tests/background-opacity/style.json
+5 −5 tests/fill-antialias/style.json
+13 −13 tests/fill-color/style.json
+7 −7 tests/fill-image/style.json
+11 −11 tests/fill-opacity/style.json
+13 −13 tests/fill-outline-color/style.json
+10 −10 tests/fill-translate-anchor/style.json
+11 −11 tests/fill-translate/style.json
+13 −13 tests/icon-color/style.json
+14 −14 tests/icon-halo-blur/style.json
+18 −18 tests/icon-halo-color/style.json
+14 −14 tests/icon-halo-width/style.json
+17 −17 tests/icon-offset/style.json
+26 −26 tests/icon-opacity/style.json
+17 −17 tests/icon-rotate/style.json
+14 −14 tests/icon-rotation-alignment/style.json
+13 −13 tests/icon-size/style.json
+10 −10 tests/icon-translate-anchor/style.json
+13 −13 tests/icon-translate/style.json
+11 −11 tests/line-blur/style.json
+15 −15 tests/line-cap/style.json
+11 −11 tests/line-color/style.json
+14 −14 tests/line-dasharray/style.json
+ tests/line-gap-width/constant/expected.png
+ tests/line-gap-width/default/expected.png
+ tests/line-gap-width/function/expected.png
+0 −0 tests/line-gap-width/info.json
+ tests/line-gap-width/literal/expected.png
+15 −15 tests/line-gap-width/style.json
+6 −6 tests/line-image/style.json
+21 −21 tests/line-join/style.json
+11 −11 tests/line-opacity/style.json
+10 −10 tests/line-translate-anchor/style.json
+11 −11 tests/line-translate/style.json
+10 −10 tests/line-width/style.json
+8 −8 tests/linear-filter-opacity-edge/style.json
+52 −52 tests/raster-blur/style.json
+31 −31 tests/raster-brightness/style.json
+29 −29 tests/raster-contrast/style.json
+29 −29 tests/raster-hue-rotate/style.json
+22 −22 tests/raster-opacity/style.json
+29 −29 tests/raster-saturation/style.json
+22 −22 tests/retina-raster/style.json
+22 −22 tests/symbol-min-distance/style.json
+13 −13 tests/symbol-placement/style.json
+ tests/text-anchor/bottom-left/expected.png
+ tests/text-anchor/bottom-right/expected.png
+ tests/text-anchor/bottom/expected.png
+ tests/text-anchor/center/expected.png
+56 −0 tests/text-anchor/info.json
+ tests/text-anchor/left/expected.png
+ tests/text-anchor/right/expected.png
+253 −0 tests/text-anchor/style.json
+ tests/text-anchor/top-left/expected.png
+ tests/text-anchor/top-right/expected.png
+ tests/text-anchor/top/expected.png
+13 −13 tests/text-color/style.json
+17 −17 tests/text-font/style.json
+14 −14 tests/text-halo-blur/style.json
+14 −14 tests/text-halo-color/style.json
+14 −14 tests/text-halo-width/style.json
+0 −20 tests/text-horizontal-align/info.json
+0 −97 tests/text-horizontal-align/style.json
+14 −14 tests/text-justify/style.json
+35 −2 tests/text-keep-upright/info.json
+ tests/text-keep-upright/line-placement-false/expected.png
+ tests/text-keep-upright/line-placement-true/expected.png
+ tests/text-keep-upright/point-placement-align-map-false/expected.png
+ tests/text-keep-upright/point-placement-align-map-true/expected.png
+ tests/text-keep-upright/point-placement-false/expected.png
+ tests/text-keep-upright/point-placement-true/expected.png
+110 −9 tests/text-keep-upright/style.json
+17 −17 tests/text-letter-spacing/style.json
+17 −17 tests/text-line-height/style.json
+15 −15 tests/text-max-angle/style.json
+17 −17 tests/text-max-width/style.json
+17 −17 tests/text-offset/style.json
+13 −13 tests/text-opacity/style.json
+ tests/text-rotate/anchor-bottom/expected.png
+ tests/text-rotate/anchor-left/expected.png
+ tests/text-rotate/anchor-right/expected.png
+ tests/text-rotate/anchor-top/expected.png
+24 −0 tests/text-rotate/info.json
+122 −17 tests/text-rotate/style.json
+17 −17 tests/text-rotation-alignment/style.json
+13 −13 tests/text-size/style.json
+14 −14 tests/text-transform/style.json
+10 −10 tests/text-translate-anchor/style.json
+13 −13 tests/text-translate/style.json
+ tests/text-vertical-align/center/expected.png
+0 −20 tests/text-vertical-align/info.json
+0 −97 tests/text-vertical-align/style.json
+13 −18 tests/video/style.json
+8 −8 tests/zoomed-fill/style.json
+18 −18 tests/zoomed-raster/style.json

0 comments on commit 51c3224

Please sign in to comment.