Skip to content

Commit 2edbdff

Browse files
committed
Remove surrogate-control
1 parent 765e835 commit 2edbdff

File tree

5 files changed

+0
-430
lines changed

5 files changed

+0
-430
lines changed

index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import * as summary from './test-engine/lib/summary.mjs'
2020
import * as display from './test-engine/lib/display.mjs'
2121
import baseTests from './tests/index.mjs'
22-
import surrogate from './tests/surrogate-control.mjs'
2322

2423
const loc = new URL(window.location)
2524
const suiteIds = loc.searchParams.getAll('suite')
@@ -31,7 +30,6 @@
3130
document.querySelectorAll('.noFrame').forEach(e => {e.style.display = 'block'})
3231
}
3332

34-
baseTests.push(surrogate)
3533
const ToC = document.getElementById('ToC')
3634
const target = document.getElementById('target')
3735
const key = document.getElementById('key')

test-engine/cli.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ import * as display from './lib/display.mjs'
33
import { GREEN, NC } from './lib/defines.mjs'
44
import fetch from 'node-fetch-with-proxy'
55
import tests from '../tests/index.mjs'
6-
import surrogate from '../tests/surrogate-control.mjs'
7-
8-
tests.push(surrogate)
96

107
const baseUrl = process.env.npm_config_base || process.env.npm_package_config_base
118
const testId = process.env.npm_config_id || process.env.npm_package_config_id

test-engine/export.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ import fs from 'fs'
33
import Ajv from 'ajv'
44

55
import tests from '../tests/index.mjs'
6-
import surrogate from '../tests/surrogate-control.mjs'
7-
8-
tests.push(surrogate)
96

107
if (process.argv[2] === 'validate') {
118
const ajv = new Ajv()

test-engine/lib/header-fixup.mjs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,5 @@ export function fixupHeader (header, respHeaders, reqConfig) {
2424
}
2525
}
2626

27-
// Surrogate-Control
28-
const capabilitySeen = respHeaders['capability-seen']
29-
if (headerName === 'surrogate-control' && capabilitySeen) {
30-
// right now we assume just one
31-
const capabilityTarget = capabilitySeen.split('=')[0]
32-
if (!capabilityTarget) {
33-
console.error('WARN: Capability target is empty')
34-
}
35-
header[1] = header[1].replace('CAPABILITY_TARGET', capabilityTarget)
36-
}
37-
3827
return header
3928
}

0 commit comments

Comments
 (0)