public abstract class PreconfiguredRenderingTest extends SVGRenderingAccuracyTest
SVGRenderingAccuracyTest.InternalPNGTranscoder| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
DEFAULT_VARIATION_PLATFORMS |
static char |
PATH_SEPARATOR |
static java.lang.String |
PNG_EXTENSION
Generic constants
|
static java.lang.String |
SVG_EXTENSION |
static java.lang.String |
SVGZ_EXTENSION |
ERROR_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 |
|---|
PreconfiguredRenderingTest() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String[] |
breakSVGFile(java.lang.String svgFile) |
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:
getCandidatereferencePrefix() + svgDir + getCandidatereferenceSuffix() + svgFile + 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 + PNG_EXTENSION
|
protected java.lang.String |
buildSVGURL(java.lang.String svgDir,
java.lang.String svgFile,
java.lang.String svgExt)
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 + PNG_EXTENSION
|
protected abstract java.lang.String |
getCandidateReferencePrefix() |
protected abstract java.lang.String |
getCandidateReferenceSuffix() |
java.lang.String |
getName()
Make the name as simple as possible.
|
protected abstract java.lang.String |
getRefImagePrefix() |
protected abstract java.lang.String |
getRefImageSuffix() |
protected abstract java.lang.String |
getSaveVariationPrefix() |
protected abstract java.lang.String |
getSaveVariationSuffix() |
protected abstract java.lang.String |
getSVGURLPrefix() |
protected abstract java.lang.String[] |
getVariationPlatforms() |
protected abstract java.lang.String |
getVariationPrefix() |
protected abstract java.lang.String |
getVariationSuffix() |
void |
setFile(java.lang.String id) |
void |
setId(java.lang.String id)
For preconfigured tests, the configuration has to be
derived from the test identifier.
|
encode, getTestImageTranscoder, getUserLanguage, getValidating, manipulateSVGDocument, setUserLanguage, setValidatingaddVariationURL, buildDiffImage, compare, getCandidateReference, getImage, getImage, getNextTempFileName, getNextTempFileName, getSaveVariation, getTempDirectory, getURLFile, getVariationURLs, imageToFile, makeCompareImage, makeRandomFileName, makeTempFileName, resolveURL, run, saveImage, saveImage, setCandidateReference, setConfig, setSaveVariationassertEquals, assertEquals, assertNull, assertTrue, error, getId, getParent, getQualifiedId, reportError, reportException, reportSuccess, runImpl, runImplBasic, setName, setParentpublic static final java.lang.String PNG_EXTENSION
public static final java.lang.String SVG_EXTENSION
public static final java.lang.String SVGZ_EXTENSION
public static final char PATH_SEPARATOR
public static final java.lang.String[] DEFAULT_VARIATION_PLATFORMS
public void setId(java.lang.String id)
setId in interface TestsetId in class AbstractTestpublic void setFile(java.lang.String id)
public java.lang.String getName()
getName in interface TestgetName in class AbstractRenderingAccuracyTestprotected java.lang.String buildSVGURL(java.lang.String svgDir,
java.lang.String svgFile,
java.lang.String svgExt)
protected abstract java.lang.String getSVGURLPrefix()
protected java.lang.String buildRefImgURL(java.lang.String svgDir,
java.lang.String svgFile)
protected abstract java.lang.String getRefImagePrefix()
protected abstract java.lang.String getRefImageSuffix()
public java.lang.String[] buildVariationURLs(java.lang.String svgDir,
java.lang.String svgFile)
protected abstract java.lang.String getVariationPrefix()
protected abstract java.lang.String getVariationSuffix()
protected abstract java.lang.String[] getVariationPlatforms()
public java.lang.String buildSaveVariationFile(java.lang.String svgDir,
java.lang.String svgFile)
protected abstract java.lang.String getSaveVariationPrefix()
protected abstract java.lang.String getSaveVariationSuffix()
public java.lang.String buildCandidateReferenceFile(java.lang.String svgDir,
java.lang.String svgFile)
protected abstract java.lang.String getCandidateReferencePrefix()
protected abstract java.lang.String getCandidateReferenceSuffix()
protected java.lang.String[] breakSVGFile(java.lang.String svgFile)