var bbox = stream.dict.get('BBox');
if (bbox && isArray(bbox) && 4 == bbox.length) {
- this.rectangle.apply(this, bbox);
+ var width = bbox[2] - bbox[0];
+ var height = bbox[3] - bbox[1];
+ this.rectangle(bbox[0], bbox[1], width, height);
this.clip();
this.endPath();
}
graphics.transform.apply(graphics, tmpTranslate);
if (bbox && isArray(bbox) && 4 == bbox.length) {
- graphics.rectangle.apply(graphics, bbox);
+ graphics.rectangle(bbox[0], bbox[1], width, height);
graphics.clip();
graphics.endPath();
}
# NB: this follows the format of Mozilla reftest
# output so that we can reuse its reftest-analyzer
# script
- print >>eqLog, 'REFTEST TEST-UNEXPECTED-FAIL |', browser +'-'+ taskId +'-page'+ str(page + 1), '| image comparison (==)'
- print >>eqLog, 'REFTEST IMAGE 1 (TEST):', snapshot
- print >>eqLog, 'REFTEST IMAGE 2 (REFERENCE):', ref
+ eqLog.write('REFTEST TEST-UNEXPECTED-FAIL | ' + browser +'-'+ taskId +'-page'+ str(page + 1) + ' | image comparison (==)\n')
+ eqLog.write('REFTEST IMAGE 1 (TEST): ' + snapshot + '\n')
+ eqLog.write('REFTEST IMAGE 2 (REFERENCE): ' + ref + '\n')
passed = False
State.numEqFailures += 1
if passed:
print 'TEST-PASS | eq test', task['id'], '| in', browser
-
+ if State.eqLog:
+ State.eqLog.close();
def checkFBF(task, results, browser):
round0, round1 = results[0], results[1]