public class SVGReferenceRenderingAccuracyTest extends ParametrizedRenderingAccuracyTest
SVGRenderingAccuracyTest.InternalPNGTranscoder| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
alias |
parameter, PARAMETER_SEPARATORREF_IMAGE_PREFIX, REF_IMAGE_SUFFIX, SAVE_CANDIDATE_REFERENCE_PREFIX, SAVE_CANDIDATE_REFERENCE_SUFFIX, SAVE_VARIATION_PREFIX, SAVE_VARIATION_SUFFIX, SVG_URL_PREFIX, VARIATION_PREFIX, VARIATION_SUFFIXDEFAULT_VARIATION_PLATFORMS, PATH_SEPARATOR, PNG_EXTENSION, SVG_EXTENSION, SVGZ_EXTENSIONERROR_CANNOT_TRANSCODE_SVG, userLanguage, validate, VALIDATING_PARSERcandidateReference, configuration, CONFIGURATION_RESOURCES, COULD_NOT_GENERATE_COMPARISON_IMAGES, COULD_NOT_LOAD_IMAGE, COULD_NOT_OPEN_VARIATION_URL, ENTRY_KEY_DIFFERENCE_IMAGE, ENTRY_KEY_ERROR_DESCRIPTION, ENTRY_KEY_INTERNAL_ERROR, ENTRY_KEY_REFERENCE_GENERATED_IMAGE_URI, ERROR_CANNOT_CREATE_TEMP_FILE, ERROR_CANNOT_CREATE_TEMP_FILE_STREAM, ERROR_CANNOT_OPEN_GENERATED_IMAGE, ERROR_CANNOT_OPEN_REFERENCE_IMAGE, ERROR_ERROR_WHILE_COMPARING_FILES, ERROR_SVG_RENDERING_NOT_ACCURATE, IMAGE_FILE_EXTENSION, IMAGE_TYPE_COMPARISON, IMAGE_TYPE_DIFF, refImgURL, saveVariation, svgURL, TEMP_FILE_PREFIX, TEMP_FILE_SUFFIX, tempDirectory, variationURLsid, name, parent| Constructor and Description |
|---|
SVGReferenceRenderingAccuracyTest() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
buildCandidateReferenceFile(java.lang.String svgDir,
java.lang.String svgFile)
Gives a chance to the subclass to control the construction
of the candidateReference URL, which is built as:
getSaveVariationPrefix() + svgDir + getSaveVariationSuffix() + svgFile + parameter + PNG_EXTENSION
|
protected java.lang.String |
buildRefImgURL(java.lang.String svgDir,
java.lang.String svgFile)
Gives a chance to the subclass to control the construction
of the reference PNG file from the svgFile name
The refImgURL is built as:
getRefImagePrefix() + svgDir + getRefImageSuffix() + svgFile
|
java.lang.String |
buildSaveVariationFile(java.lang.String svgDir,
java.lang.String svgFile)
Gives a chance to the subclass to control the construction
of the saveVariation URL, which is built as:
getSaveVariationPrefix() + svgDir + getSaveVariationSuffix() + svgFile + parameter + PNG_EXTENSION
|
protected java.lang.String |
buildSVGURL(java.lang.String svgDir,
java.lang.String svgFile)
Gives a chance to the subclass to prepend a prefix to the
svgFile name.
|
java.lang.String[] |
buildVariationURLs(java.lang.String svgDir,
java.lang.String svgFile)
Gives a chance to the subclass to control the construction
of the variation URL, which is built as:
getVariationPrefix() + svgDir + getVariationSuffix() + svgFile + parameter + PNG_EXTENSION
|
protected java.net.URL |
resolveURL(java.lang.String url)
Resolves the input string as follows.
|
void |
setId(java.lang.String id)
For this type of test, the id should be made as
follows:
<fileName>#reference-alias For example: samples/anne.svg#svgView(viewBox(0,0,100,100))-viewBox1 |
getParameterSeparatorgetCandidateReferencePrefix, getCandidateReferenceSuffix, getRefImagePrefix, getRefImageSuffix, getSaveVariationPrefix, getSaveVariationSuffix, getSVGURLPrefix, getVariationPlatforms, getVariationPrefix, getVariationSuffixbreakSVGFile, buildSVGURL, getName, setFileencode, getTestImageTranscoder, getUserLanguage, getValidating, manipulateSVGDocument, setUserLanguage, setValidatingaddVariationURL, buildDiffImage, compare, getCandidateReference, getImage, getImage, getNextTempFileName, getNextTempFileName, getSaveVariation, getTempDirectory, getURLFile, getVariationURLs, imageToFile, makeCompareImage, makeRandomFileName, makeTempFileName, run, saveImage, saveImage, setCandidateReference, setConfig, setSaveVariationassertEquals, assertEquals, assertNull, assertTrue, error, getId, getParent, getQualifiedId, reportError, reportException, reportSuccess, runImpl, runImplBasic, setName, setParentpublic void setId(java.lang.String id)
setId in interface TestsetId in class ParametrizedRenderingAccuracyTestprotected java.net.URL resolveURL(java.lang.String url)
resolveURL in class AbstractRenderingAccuracyTestprotected java.lang.String buildSVGURL(java.lang.String svgDir,
java.lang.String svgFile)
protected java.lang.String buildRefImgURL(java.lang.String svgDir,
java.lang.String svgFile)
buildRefImgURL in class ParametrizedRenderingAccuracyTestpublic java.lang.String[] buildVariationURLs(java.lang.String svgDir,
java.lang.String svgFile)
buildVariationURLs in class ParametrizedRenderingAccuracyTestpublic java.lang.String buildSaveVariationFile(java.lang.String svgDir,
java.lang.String svgFile)
buildSaveVariationFile in class ParametrizedRenderingAccuracyTestpublic java.lang.String buildCandidateReferenceFile(java.lang.String svgDir,
java.lang.String svgFile)
buildCandidateReferenceFile in class ParametrizedRenderingAccuracyTest