Merge pull request #14547 from Snuffleupagus/xfa_bug1720182-file
Update the file used with the `xfa_bug1720182` test-case
This commit is contained in:
commit
d57f3a13d7
@ -37,6 +37,8 @@ const WORKER_SRC = "../build/generic/build/pdf.worker.js";
|
||||
const RENDER_TASK_ON_CONTINUE_DELAY = 5; // ms
|
||||
const SVG_NS = "http://www.w3.org/2000/svg";
|
||||
|
||||
const md5FileMap = new Map();
|
||||
|
||||
function loadStyles(styles) {
|
||||
const promises = [];
|
||||
|
||||
@ -431,6 +433,19 @@ class Driver {
|
||||
task.stats = { times: [] };
|
||||
task.enableXfa = task.enableXfa === true;
|
||||
|
||||
const prevFile = md5FileMap.get(task.md5);
|
||||
if (prevFile) {
|
||||
if (task.file !== prevFile) {
|
||||
this._nextPage(
|
||||
task,
|
||||
`The "${task.file}" file is identical to the previously used "${prevFile}" file.`
|
||||
);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
md5FileMap.set(task.md5, task.file);
|
||||
}
|
||||
|
||||
// Support *linked* test-cases for the other suites, e.g. unit- and
|
||||
// integration-tests, without needing to run them as reference-tests.
|
||||
if (task.type === "other") {
|
||||
|
@ -1 +0,0 @@
|
||||
https://bugzilla.mozilla.org/attachment.cgi?id=9230780
|
@ -1157,7 +1157,7 @@
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "xfa_bug1720182",
|
||||
"file": "pdfs/xfa_bug1720182.pdf",
|
||||
"file": "pdfs/xfa_bug1716380.pdf",
|
||||
"md5": "1351f816f0509fe750ca61ef2bd40872",
|
||||
"link": true,
|
||||
"rounds": 1,
|
||||
@ -1174,7 +1174,8 @@
|
||||
"ComplainantLastname2711": {
|
||||
"value": "Bar"
|
||||
}
|
||||
}
|
||||
},
|
||||
"about": "This *intentionally* uses the same file as test-case xfa_bug1716380."
|
||||
},
|
||||
{ "id": "bug1720411",
|
||||
"file": "pdfs/bug1720411.pdf",
|
||||
|
Loading…
x
Reference in New Issue
Block a user