{
  "config": {
    "argv": [
      "/opt/homebrew/Cellar/node@22/22.23.3/bin/node",
      "/Users/gregorythompson/work/tabmorph/node_modules/.pnpm/@playwright+test@1.64.1/node_modules/@playwright/test/cli.js",
      "test",
      "e2e/text-image.spec.ts",
      "--config=playwright.production.config.ts",
      "--project=chromium",
      "--project=webkit",
      "--workers=1",
      "--output=benchmarks/research/text-image1/tests-local1",
      "--reporter=json"
    ],
    "configFile": "/Users/gregorythompson/work/tabmorph/playwright.production.config.ts",
    "rootDir": "/Users/gregorythompson/work/tabmorph/e2e",
    "failOnFlakyTests": false,
    "forbidOnly": false,
    "fullyParallel": true,
    "globalSetup": null,
    "globalTeardown": null,
    "globalTimeout": 0,
    "grep": {},
    "grepInvert": null,
    "maxFailures": 0,
    "metadata": {
      "actualWorkers": 1
    },
    "preserveOutput": "always",
    "projects": [
      {
        "outputDir": "/Users/gregorythompson/work/tabmorph/benchmarks/research/text-image1/tests-local1",
        "repeatEach": 1,
        "retries": 0,
        "metadata": {
          "actualWorkers": 1
        },
        "id": "chromium",
        "name": "chromium",
        "testDir": "/Users/gregorythompson/work/tabmorph/e2e",
        "testIgnore": [],
        "testMatch": [
          "**/*.@(spec|test).?(c|m)[jt]s?(x)"
        ],
        "timeout": 60000
      },
      {
        "outputDir": "/Users/gregorythompson/work/tabmorph/benchmarks/research/text-image1/tests-local1",
        "repeatEach": 1,
        "retries": 0,
        "metadata": {
          "actualWorkers": 1
        },
        "id": "firefox",
        "name": "firefox",
        "testDir": "/Users/gregorythompson/work/tabmorph/e2e",
        "testIgnore": [],
        "testMatch": [
          "**/*.@(spec|test).?(c|m)[jt]s?(x)"
        ],
        "timeout": 60000
      },
      {
        "outputDir": "/Users/gregorythompson/work/tabmorph/benchmarks/research/text-image1/tests-local1",
        "repeatEach": 1,
        "retries": 0,
        "metadata": {
          "actualWorkers": 1
        },
        "id": "webkit",
        "name": "webkit",
        "testDir": "/Users/gregorythompson/work/tabmorph/e2e",
        "testIgnore": [],
        "testMatch": [
          "**/*.@(spec|test).?(c|m)[jt]s?(x)"
        ],
        "timeout": 60000
      }
    ],
    "filteredProjects": [
      {
        "grep": {},
        "grepInvert": null,
        "outputDir": "/Users/gregorythompson/work/tabmorph/benchmarks/research/text-image1/tests-local1",
        "repeatEach": 1,
        "retries": 0,
        "metadata": {
          "actualWorkers": 1
        },
        "name": "chromium",
        "testDir": "/Users/gregorythompson/work/tabmorph/e2e",
        "snapshotDir": "/Users/gregorythompson/work/tabmorph/e2e",
        "testIgnore": [],
        "testMatch": "**/*.@(spec|test).?(c|m)[jt]s?(x)",
        "timeout": 60000,
        "use": {
          "trace": "retain-on-failure",
          "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.8078.4 Safari/537.36",
          "viewport": {
            "width": 1280,
            "height": 720
          },
          "screen": {
            "width": 1920,
            "height": 1080
          },
          "deviceScaleFactor": 1,
          "isMobile": false,
          "hasTouch": false,
          "defaultBrowserType": "chromium"
        },
        "dependencies": [],
        "ignoreSnapshots": false,
        "__projectId": "chromium"
      },
      {
        "grep": {},
        "grepInvert": null,
        "outputDir": "/Users/gregorythompson/work/tabmorph/benchmarks/research/text-image1/tests-local1",
        "repeatEach": 1,
        "retries": 0,
        "metadata": {
          "actualWorkers": 1
        },
        "name": "webkit",
        "testDir": "/Users/gregorythompson/work/tabmorph/e2e",
        "snapshotDir": "/Users/gregorythompson/work/tabmorph/e2e",
        "testIgnore": [],
        "testMatch": "**/*.@(spec|test).?(c|m)[jt]s?(x)",
        "timeout": 60000,
        "use": {
          "trace": "retain-on-failure",
          "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.2 Safari/605.1.15",
          "viewport": {
            "width": 1280,
            "height": 720
          },
          "screen": {
            "width": 1792,
            "height": 1120
          },
          "deviceScaleFactor": 2,
          "isMobile": false,
          "hasTouch": false,
          "defaultBrowserType": "webkit"
        },
        "dependencies": [],
        "ignoreSnapshots": false,
        "__projectId": "webkit"
      }
    ],
    "quiet": false,
    "reporter": [
      [
        "json"
      ]
    ],
    "reportSlowTests": {
      "max": 5,
      "threshold": 300000
    },
    "shard": null,
    "tags": [],
    "updateSnapshots": "default",
    "updateSourceMethod": "patch",
    "version": "1.64.1",
    "workers": 1,
    "webServer": null
  },
  "suites": [
    {
      "title": "text-image.spec.ts",
      "file": "text-image.spec.ts",
      "column": 0,
      "line": 0,
      "specs": [
        {
          "title": "pages-txt to png all pages cold and offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 1071,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:22:15.621Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-9bedc8f94a289a18567d",
          "file": "text-image.spec.ts",
          "line": 25,
          "column": 53
        },
        {
          "title": "pages-txt to jpg all pages cold and offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 2184,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:22:16.847Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-c0bf568524842c7caabd",
          "file": "text-image.spec.ts",
          "line": 25,
          "column": 53
        },
        {
          "title": "pages-md to png all pages cold and offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 4046,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:22:19.036Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-c2061b553caa487c8b0f",
          "file": "text-image.spec.ts",
          "line": 25,
          "column": 53
        },
        {
          "title": "pages-md to jpg all pages cold and offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 4399,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:22:23.088Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-6e94e3699cf6917d7035",
          "file": "text-image.spec.ts",
          "line": 25,
          "column": 53
        },
        {
          "title": "semantic to png all pages cold and offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3325,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:22:27.491Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-175f5e7f897dbeb01ee8",
          "file": "text-image.spec.ts",
          "line": 25,
          "column": 53
        },
        {
          "title": "semantic to jpg all pages cold and offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3805,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:22:30.821Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-e83deb3546c09fb5c8f8",
          "file": "text-image.spec.ts",
          "line": 25,
          "column": 53
        },
        {
          "title": "holdout to png all pages cold and offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3312,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:22:34.631Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-643d7cb438ce7478cc56",
          "file": "text-image.spec.ts",
          "line": 25,
          "column": 53
        },
        {
          "title": "holdout to jpg all pages cold and offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3773,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:22:37.948Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-0025189e30cd9f2b683a",
          "file": "text-image.spec.ts",
          "line": 25,
          "column": 53
        },
        {
          "title": "pages-txt 72 DPI PNG control",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 1104,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:22:41.726Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-6dadaa037d17b0383419",
          "file": "text-image.spec.ts",
          "line": 28,
          "column": 35
        },
        {
          "title": "pages-md 72 DPI PNG control",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3328,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:22:42.835Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-093677273c777535c16e",
          "file": "text-image.spec.ts",
          "line": 28,
          "column": 35
        },
        {
          "title": "pages-txt JPEG quality-size curve at fixed 72 DPI",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 4085,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:22:46.168Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-6d4551cd86d5f8140325",
          "file": "text-image.spec.ts",
          "line": 31,
          "column": 35
        },
        {
          "title": "pages-md JPEG quality-size curve at fixed 72 DPI",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 7159,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:22:50.258Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-265cf38c587aa574d40f",
          "file": "text-image.spec.ts",
          "line": 31,
          "column": 35
        },
        {
          "title": "300 DPI A4 text pages retain full resolution",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 1202,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:22:57.422Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-7c36929f36f8153f11dc",
          "file": "text-image.spec.ts",
          "line": 35,
          "column": 1
        },
        {
          "title": "pages-txt selects only page two",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 955,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:22:58.628Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-a86ee055f85173d994b9",
          "file": "text-image.spec.ts",
          "line": 36,
          "column": 35
        },
        {
          "title": "pages-md selects only page two",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3328,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:22:59.588Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-a113a156221fbf6ebe5c",
          "file": "text-image.spec.ts",
          "line": 36,
          "column": 35
        },
        {
          "title": "compact JPEG chroma is an explicit independent choice",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3888,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:23:02.920Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-c85bca115e2a6e0d3f3f",
          "file": "text-image.spec.ts",
          "line": 37,
          "column": 1
        },
        {
          "title": "transparent PNG retains unpainted page alpha",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3921,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:23:06.813Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-086ea28e9408dedf5a24",
          "file": "text-image.spec.ts",
          "line": 38,
          "column": 1
        },
        {
          "title": "txt refusal and offline recovery",
          "ok": false,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 0,
                  "parallelIndex": 0,
                  "status": "failed",
                  "duration": 30940,
                  "error": {
                    "message": "Error: \u001b[2mexpect(\u001b[22m\u001b[31mlocator\u001b[39m\u001b[2m).\u001b[22mtoBeVisible\u001b[2m(\u001b[22m\u001b[2m)\u001b[22m failed\n\nLocator: getByRole('button', { name: 'Retry conversion', exact: true })\nExpected: visible\nTimeout: 30000ms\nError: element(s) not found\n\nCall log:\n\u001b[2m  - Expect \"toBeVisible\" getByRole('button', { name: 'Retry conversion', exact: true }) with timeout 30000ms\u001b[22m\n\u001b[2m  - waiting for getByRole('button', { name: 'Retry conversion', exact: true })\u001b[22m\n",
                    "stack": "Error: \u001b[2mexpect(\u001b[22m\u001b[31mlocator\u001b[39m\u001b[2m).\u001b[22mtoBeVisible\u001b[2m(\u001b[22m\u001b[2m)\u001b[22m failed\n\nLocator: getByRole('button', { name: 'Retry conversion', exact: true })\nExpected: visible\nTimeout: 30000ms\nError: element(s) not found\n\nCall log:\n\u001b[2m  - Expect \"toBeVisible\" getByRole('button', { name: 'Retry conversion', exact: true }) with timeout 30000ms\u001b[22m\n\u001b[2m  - waiting for getByRole('button', { name: 'Retry conversion', exact: true })\u001b[22m\n\n    at /Users/gregorythompson/work/tabmorph/e2e/text-image.spec.ts:40:561",
                    "location": {
                      "file": "/Users/gregorythompson/work/tabmorph/e2e/text-image.spec.ts",
                      "column": 561,
                      "line": 40
                    },
                    "snippet": "  38 | test('transparent PNG retains unpainted page alpha',async({page,context,browserName})=>{test.setTimeout(300000);const c=corpora[3];await openConverter(page,'md-to-png',180000);await configure(page,{dpi:150,transparent:true},'png');await context.setOffline(true);await addFiles(page,await input(c));await keep(page,browserName,'holdout-png-transparent',c,'png',{dpi:150,transparent:true})})\n  39 | for(const c of corpora.slice(0,2))test(`${c.from} refusal and offline recovery`,async({page,context,browserName})=>{\n> 40 |  test.setTimeout(300000);await openConverter(page,c.from+'-to-png',180000);await configure(page,{dpi:72},'png');await context.setOffline(true);const req:string[]=[];context.on('request',r=>{if(/^https?:/.test(r.url()))req.push(r.url())});const value=c.from==='txt'?new Uint8Array([0xff,0xfe,65,0]):Buffer.from('<ol reversed><li>Invalid numbering.</li></ol>');await addFiles(page,{name:'invalid.'+c.from,mimeType:c.from==='txt'?'text/plain':'text/markdown',buffer:Buffer.from(value)});await expect(page.getByRole('button',{name:'Retry conversion',exact:true})).toBeVisible({timeout:30000});await expect(page.getByRole('link',{name:/^Download invalid-page-/})).toHaveCount(0);await page.getByRole('button',{name:'Remove invalid.'+c.from,exact:true}).click();const recovered=c.from==='md'?corpora[2]:c;await addFiles(page,await input(recovered));await keep(page,browserName,c.from+'-recovery',recovered,'png',{dpi:72});expect(req).toEqual([])\n     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^\n  41 | })\n  42 | test('source page selects PNG and downloads inside its isolated frame',async({page,context,browserName,request})=>{\n  43 |  test.setTimeout(300000);for(const from of['txt','md']){const html=await(await request.get(SITE+'/'+from+'-converter')).text();for(const to of['png','jpg']){expect(html).toContain(`href=\"/${from}-to-${to}\"`);expect(html).toContain(`\"url\":\"${SITE}/${from}-to-${to}\"`)}}"
                  },
                  "errors": [
                    {
                      "location": {
                        "file": "/Users/gregorythompson/work/tabmorph/e2e/text-image.spec.ts",
                        "column": 561,
                        "line": 40
                      },
                      "message": "Error: \u001b[2mexpect(\u001b[22m\u001b[31mlocator\u001b[39m\u001b[2m).\u001b[22mtoBeVisible\u001b[2m(\u001b[22m\u001b[2m)\u001b[22m failed\n\nLocator: getByRole('button', { name: 'Retry conversion', exact: true })\nExpected: visible\nTimeout: 30000ms\nError: element(s) not found\n\nCall log:\n\u001b[2m  - Expect \"toBeVisible\" getByRole('button', { name: 'Retry conversion', exact: true }) with timeout 30000ms\u001b[22m\n\u001b[2m  - waiting for getByRole('button', { name: 'Retry conversion', exact: true })\u001b[22m\n\n\n  38 | test('transparent PNG retains unpainted page alpha',async({page,context,browserName})=>{test.setTimeout(300000);const c=corpora[3];await openConverter(page,'md-to-png',180000);await configure(page,{dpi:150,transparent:true},'png');await context.setOffline(true);await addFiles(page,await input(c));await keep(page,browserName,'holdout-png-transparent',c,'png',{dpi:150,transparent:true})})\n  39 | for(const c of corpora.slice(0,2))test(`${c.from} refusal and offline recovery`,async({page,context,browserName})=>{\n> 40 |  test.setTimeout(300000);await openConverter(page,c.from+'-to-png',180000);await configure(page,{dpi:72},'png');await context.setOffline(true);const req:string[]=[];context.on('request',r=>{if(/^https?:/.test(r.url()))req.push(r.url())});const value=c.from==='txt'?new Uint8Array([0xff,0xfe,65,0]):Buffer.from('<ol reversed><li>Invalid numbering.</li></ol>');await addFiles(page,{name:'invalid.'+c.from,mimeType:c.from==='txt'?'text/plain':'text/markdown',buffer:Buffer.from(value)});await expect(page.getByRole('button',{name:'Retry conversion',exact:true})).toBeVisible({timeout:30000});await expect(page.getByRole('link',{name:/^Download invalid-page-/})).toHaveCount(0);await page.getByRole('button',{name:'Remove invalid.'+c.from,exact:true}).click();const recovered=c.from==='md'?corpora[2]:c;await addFiles(page,await input(recovered));await keep(page,browserName,c.from+'-recovery',recovered,'png',{dpi:72});expect(req).toEqual([])\n     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^\n  41 | })\n  42 | test('source page selects PNG and downloads inside its isolated frame',async({page,context,browserName,request})=>{\n  43 |  test.setTimeout(300000);for(const from of['txt','md']){const html=await(await request.get(SITE+'/'+from+'-converter')).text();for(const to of['png','jpg']){expect(html).toContain(`href=\"/${from}-to-${to}\"`);expect(html).toContain(`\"url\":\"${SITE}/${from}-to-${to}\"`)}}\n    at /Users/gregorythompson/work/tabmorph/e2e/text-image.spec.ts:40:561"
                    }
                  ],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:23:10.739Z",
                  "annotations": [],
                  "attachments": [
                    {
                      "name": "error-context",
                      "contentType": "text/markdown",
                      "path": "/Users/gregorythompson/work/tabmorph/benchmarks/research/text-image1/tests-local1/text-image-txt-refusal-and-offline-recovery-chromium/error-context.md"
                    },
                    {
                      "name": "trace",
                      "contentType": "application/zip",
                      "path": "/Users/gregorythompson/work/tabmorph/benchmarks/research/text-image1/tests-local1/text-image-txt-refusal-and-offline-recovery-chromium/trace.zip"
                    }
                  ],
                  "errorLocation": {
                    "file": "/Users/gregorythompson/work/tabmorph/e2e/text-image.spec.ts",
                    "column": 561,
                    "line": 40
                  }
                }
              ],
              "status": "unexpected"
            }
          ],
          "id": "36f61f42fbe82d404915-db679c029bf6f33bc0be",
          "file": "text-image.spec.ts",
          "line": 39,
          "column": 35
        },
        {
          "title": "md refusal and offline recovery",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 1,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3476,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:23:42.343Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-534c29d042eab7e77594",
          "file": "text-image.spec.ts",
          "line": 39,
          "column": 35
        },
        {
          "title": "source page selects PNG and downloads inside its isolated frame",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 1,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3882,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:23:45.967Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-c27c87e3a26819a66735",
          "file": "text-image.spec.ts",
          "line": 42,
          "column": 1
        },
        {
          "title": "actual native cancellation suppresses images and recovers offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "chromium",
              "projectName": "chromium",
              "results": [
                {
                  "workerIndex": 1,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3517,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:23:49.854Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-c745d9abec43b6e63229",
          "file": "text-image.spec.ts",
          "line": 46,
          "column": 1
        },
        {
          "title": "pages-txt to png all pages cold and offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 1530,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:23:53.743Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-12383c91cd97ba93587c",
          "file": "text-image.spec.ts",
          "line": 25,
          "column": 53
        },
        {
          "title": "pages-txt to jpg all pages cold and offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 2413,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:23:55.506Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-4e98e9a8d10920188221",
          "file": "text-image.spec.ts",
          "line": 25,
          "column": 53
        },
        {
          "title": "pages-md to png all pages cold and offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 4356,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:23:57.925Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-9b39b5ec6b83366cf546",
          "file": "text-image.spec.ts",
          "line": 25,
          "column": 53
        },
        {
          "title": "pages-md to jpg all pages cold and offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 5191,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:24:02.287Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-3e28803cefc81bbc7f5d",
          "file": "text-image.spec.ts",
          "line": 25,
          "column": 53
        },
        {
          "title": "semantic to png all pages cold and offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3756,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:24:07.484Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-f20b55f375008be408b0",
          "file": "text-image.spec.ts",
          "line": 25,
          "column": 53
        },
        {
          "title": "semantic to jpg all pages cold and offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3796,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:24:11.245Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-1b4e677a7443f8638667",
          "file": "text-image.spec.ts",
          "line": 25,
          "column": 53
        },
        {
          "title": "holdout to png all pages cold and offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3223,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:24:15.046Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-156b9cc2da441f2839b0",
          "file": "text-image.spec.ts",
          "line": 25,
          "column": 53
        },
        {
          "title": "holdout to jpg all pages cold and offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 4105,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:24:18.275Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-c202fcba584a800c0bc3",
          "file": "text-image.spec.ts",
          "line": 25,
          "column": 53
        },
        {
          "title": "pages-txt 72 DPI PNG control",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 1438,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:24:22.385Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-742c75d68652644d8981",
          "file": "text-image.spec.ts",
          "line": 28,
          "column": 35
        },
        {
          "title": "pages-md 72 DPI PNG control",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3942,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:24:23.829Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-47755d6134862f58cce5",
          "file": "text-image.spec.ts",
          "line": 28,
          "column": 35
        },
        {
          "title": "pages-txt JPEG quality-size curve at fixed 72 DPI",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 4826,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:24:27.777Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-5a24c734d58004f54eb2",
          "file": "text-image.spec.ts",
          "line": 31,
          "column": 35
        },
        {
          "title": "pages-md JPEG quality-size curve at fixed 72 DPI",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 8075,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:24:32.608Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-50898cb22323c33a2891",
          "file": "text-image.spec.ts",
          "line": 31,
          "column": 35
        },
        {
          "title": "300 DPI A4 text pages retain full resolution",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 1822,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:24:40.689Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-6eb5b25f5aa3ae239e59",
          "file": "text-image.spec.ts",
          "line": 35,
          "column": 1
        },
        {
          "title": "pages-txt selects only page two",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 1435,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:24:42.516Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-bb607938d086a3bca000",
          "file": "text-image.spec.ts",
          "line": 36,
          "column": 35
        },
        {
          "title": "pages-md selects only page two",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3884,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:24:43.956Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-cda4a9c21d0ffd692263",
          "file": "text-image.spec.ts",
          "line": 36,
          "column": 35
        },
        {
          "title": "compact JPEG chroma is an explicit independent choice",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 4248,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:24:47.845Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-4c3faa33e90d0298c159",
          "file": "text-image.spec.ts",
          "line": 37,
          "column": 1
        },
        {
          "title": "transparent PNG retains unpainted page alpha",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3938,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:24:52.097Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-1f055ca8956ec6e48e32",
          "file": "text-image.spec.ts",
          "line": 38,
          "column": 1
        },
        {
          "title": "txt refusal and offline recovery",
          "ok": false,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 2,
                  "parallelIndex": 0,
                  "status": "failed",
                  "duration": 31243,
                  "error": {
                    "message": "Error: \u001b[2mexpect(\u001b[22m\u001b[31mlocator\u001b[39m\u001b[2m).\u001b[22mtoBeVisible\u001b[2m(\u001b[22m\u001b[2m)\u001b[22m failed\n\nLocator: getByRole('button', { name: 'Retry conversion', exact: true })\nExpected: visible\nTimeout: 30000ms\nError: element(s) not found\n\nCall log:\n\u001b[2m  - Expect \"toBeVisible\" getByRole('button', { name: 'Retry conversion', exact: true }) with timeout 30000ms\u001b[22m\n\u001b[2m  - waiting for getByRole('button', { name: 'Retry conversion', exact: true })\u001b[22m\n",
                    "stack": "Error: \u001b[2mexpect(\u001b[22m\u001b[31mlocator\u001b[39m\u001b[2m).\u001b[22mtoBeVisible\u001b[2m(\u001b[22m\u001b[2m)\u001b[22m failed\n\nLocator: getByRole('button', { name: 'Retry conversion', exact: true })\nExpected: visible\nTimeout: 30000ms\nError: element(s) not found\n\nCall log:\n\u001b[2m  - Expect \"toBeVisible\" getByRole('button', { name: 'Retry conversion', exact: true }) with timeout 30000ms\u001b[22m\n\u001b[2m  - waiting for getByRole('button', { name: 'Retry conversion', exact: true })\u001b[22m\n\n    at /Users/gregorythompson/work/tabmorph/e2e/text-image.spec.ts:40:561",
                    "location": {
                      "file": "/Users/gregorythompson/work/tabmorph/e2e/text-image.spec.ts",
                      "column": 561,
                      "line": 40
                    },
                    "snippet": "  38 | test('transparent PNG retains unpainted page alpha',async({page,context,browserName})=>{test.setTimeout(300000);const c=corpora[3];await openConverter(page,'md-to-png',180000);await configure(page,{dpi:150,transparent:true},'png');await context.setOffline(true);await addFiles(page,await input(c));await keep(page,browserName,'holdout-png-transparent',c,'png',{dpi:150,transparent:true})})\n  39 | for(const c of corpora.slice(0,2))test(`${c.from} refusal and offline recovery`,async({page,context,browserName})=>{\n> 40 |  test.setTimeout(300000);await openConverter(page,c.from+'-to-png',180000);await configure(page,{dpi:72},'png');await context.setOffline(true);const req:string[]=[];context.on('request',r=>{if(/^https?:/.test(r.url()))req.push(r.url())});const value=c.from==='txt'?new Uint8Array([0xff,0xfe,65,0]):Buffer.from('<ol reversed><li>Invalid numbering.</li></ol>');await addFiles(page,{name:'invalid.'+c.from,mimeType:c.from==='txt'?'text/plain':'text/markdown',buffer:Buffer.from(value)});await expect(page.getByRole('button',{name:'Retry conversion',exact:true})).toBeVisible({timeout:30000});await expect(page.getByRole('link',{name:/^Download invalid-page-/})).toHaveCount(0);await page.getByRole('button',{name:'Remove invalid.'+c.from,exact:true}).click();const recovered=c.from==='md'?corpora[2]:c;await addFiles(page,await input(recovered));await keep(page,browserName,c.from+'-recovery',recovered,'png',{dpi:72});expect(req).toEqual([])\n     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^\n  41 | })\n  42 | test('source page selects PNG and downloads inside its isolated frame',async({page,context,browserName,request})=>{\n  43 |  test.setTimeout(300000);for(const from of['txt','md']){const html=await(await request.get(SITE+'/'+from+'-converter')).text();for(const to of['png','jpg']){expect(html).toContain(`href=\"/${from}-to-${to}\"`);expect(html).toContain(`\"url\":\"${SITE}/${from}-to-${to}\"`)}}"
                  },
                  "errors": [
                    {
                      "location": {
                        "file": "/Users/gregorythompson/work/tabmorph/e2e/text-image.spec.ts",
                        "column": 561,
                        "line": 40
                      },
                      "message": "Error: \u001b[2mexpect(\u001b[22m\u001b[31mlocator\u001b[39m\u001b[2m).\u001b[22mtoBeVisible\u001b[2m(\u001b[22m\u001b[2m)\u001b[22m failed\n\nLocator: getByRole('button', { name: 'Retry conversion', exact: true })\nExpected: visible\nTimeout: 30000ms\nError: element(s) not found\n\nCall log:\n\u001b[2m  - Expect \"toBeVisible\" getByRole('button', { name: 'Retry conversion', exact: true }) with timeout 30000ms\u001b[22m\n\u001b[2m  - waiting for getByRole('button', { name: 'Retry conversion', exact: true })\u001b[22m\n\n\n  38 | test('transparent PNG retains unpainted page alpha',async({page,context,browserName})=>{test.setTimeout(300000);const c=corpora[3];await openConverter(page,'md-to-png',180000);await configure(page,{dpi:150,transparent:true},'png');await context.setOffline(true);await addFiles(page,await input(c));await keep(page,browserName,'holdout-png-transparent',c,'png',{dpi:150,transparent:true})})\n  39 | for(const c of corpora.slice(0,2))test(`${c.from} refusal and offline recovery`,async({page,context,browserName})=>{\n> 40 |  test.setTimeout(300000);await openConverter(page,c.from+'-to-png',180000);await configure(page,{dpi:72},'png');await context.setOffline(true);const req:string[]=[];context.on('request',r=>{if(/^https?:/.test(r.url()))req.push(r.url())});const value=c.from==='txt'?new Uint8Array([0xff,0xfe,65,0]):Buffer.from('<ol reversed><li>Invalid numbering.</li></ol>');await addFiles(page,{name:'invalid.'+c.from,mimeType:c.from==='txt'?'text/plain':'text/markdown',buffer:Buffer.from(value)});await expect(page.getByRole('button',{name:'Retry conversion',exact:true})).toBeVisible({timeout:30000});await expect(page.getByRole('link',{name:/^Download invalid-page-/})).toHaveCount(0);await page.getByRole('button',{name:'Remove invalid.'+c.from,exact:true}).click();const recovered=c.from==='md'?corpora[2]:c;await addFiles(page,await input(recovered));await keep(page,browserName,c.from+'-recovery',recovered,'png',{dpi:72});expect(req).toEqual([])\n     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^\n  41 | })\n  42 | test('source page selects PNG and downloads inside its isolated frame',async({page,context,browserName,request})=>{\n  43 |  test.setTimeout(300000);for(const from of['txt','md']){const html=await(await request.get(SITE+'/'+from+'-converter')).text();for(const to of['png','jpg']){expect(html).toContain(`href=\"/${from}-to-${to}\"`);expect(html).toContain(`\"url\":\"${SITE}/${from}-to-${to}\"`)}}\n    at /Users/gregorythompson/work/tabmorph/e2e/text-image.spec.ts:40:561"
                    }
                  ],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:24:56.041Z",
                  "annotations": [],
                  "attachments": [
                    {
                      "name": "error-context",
                      "contentType": "text/markdown",
                      "path": "/Users/gregorythompson/work/tabmorph/benchmarks/research/text-image1/tests-local1/text-image-txt-refusal-and-offline-recovery-webkit/error-context.md"
                    },
                    {
                      "name": "trace",
                      "contentType": "application/zip",
                      "path": "/Users/gregorythompson/work/tabmorph/benchmarks/research/text-image1/tests-local1/text-image-txt-refusal-and-offline-recovery-webkit/trace.zip"
                    }
                  ],
                  "errorLocation": {
                    "file": "/Users/gregorythompson/work/tabmorph/e2e/text-image.spec.ts",
                    "column": 561,
                    "line": 40
                  }
                }
              ],
              "status": "unexpected"
            }
          ],
          "id": "36f61f42fbe82d404915-e55c90b99308d1a86190",
          "file": "text-image.spec.ts",
          "line": 39,
          "column": 35
        },
        {
          "title": "md refusal and offline recovery",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 3,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 4516,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:25:28.099Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-b0d91db8d727fdf9e5c9",
          "file": "text-image.spec.ts",
          "line": 39,
          "column": 35
        },
        {
          "title": "source page selects PNG and downloads inside its isolated frame",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 3,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 4084,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:25:32.878Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-e1309fe9f908641a9f81",
          "file": "text-image.spec.ts",
          "line": 42,
          "column": 1
        },
        {
          "title": "actual native cancellation suppresses images and recovers offline",
          "ok": true,
          "tags": [],
          "tests": [
            {
              "timeout": 300000,
              "annotations": [],
              "expectedStatus": "passed",
              "projectId": "webkit",
              "projectName": "webkit",
              "results": [
                {
                  "workerIndex": 3,
                  "parallelIndex": 0,
                  "status": "passed",
                  "duration": 3789,
                  "errors": [],
                  "stdout": [],
                  "stderr": [],
                  "retry": 0,
                  "startTime": "2026-10-29T09:25:36.968Z",
                  "annotations": [],
                  "attachments": []
                }
              ],
              "status": "expected"
            }
          ],
          "id": "36f61f42fbe82d404915-f2d8f1e9db9e3c2307f6",
          "file": "text-image.spec.ts",
          "line": 46,
          "column": 1
        }
      ]
    }
  ],
  "errors": [],
  "stats": {
    "startTime": "2026-10-29T09:22:15.224Z",
    "duration": 205602.54799999998,
    "expected": 40,
    "skipped": 0,
    "unexpected": 2,
    "flaky": 0
  }
}
