| 76 | } |
| 77 | OC.getCurrentUser = () => ({displayName: 'Test user'}); |
| 78 | window.jspdf = {jsPDF: class { |
| 79 | constructor() { |
| 80 | this.internal = {pageSize: {getWidth: () => 842, getHeight: () => 595}}; |
| 81 | } |
| 82 | setProperties() {} |
| 83 | setFontSize() {} |
| 84 | text(text, x, y) { window.draws.push({text, x, y}); } |
| 85 | addImage(data, format, x, y, width, height, alias) { window.draws.push({alias, x, y, width, height}); } |
| 86 | save() { window.pdfSaved = true; } |
| 87 | }}; |
| 88 | }); |
| 89 | for (const size of [{width: 1000, height: 600}, {width: 600, height: 1400}]) { |
| 90 | const output = await page.evaluate(async size => { |
nothing calls this directly
no outgoing calls
no test coverage detected