|
7 | 7 | NO_TEXT_INPUT_AT_POINT_RUNNER_CODE, |
8 | 8 | RUNNER_SCREEN_CAPTURE_REFUSAL_RUNNER_CODES, |
9 | 9 | TEXT_INPUT_PROBE_UNAVAILABLE_RUNNER_CODE, |
10 | | - buildRunnerResponseError, |
11 | 10 | classifyRunnerReportedError, |
12 | 11 | } from '../runner-contract.ts'; |
13 | 12 | import { |
@@ -154,29 +153,6 @@ test('a back swipe that proved nothing stays COMMAND_FAILED, unknown, with its o |
154 | 153 | assert.equal(notDispatched.code, 'COMMAND_FAILED'); |
155 | 154 | assert.equal(notDispatched.details.reason, 'back_swipe_not_dispatched'); |
156 | 155 | assert.equal(notDispatched.details.dispatched, 'no'); |
157 | | - // visionOS has no back gesture: the runner refuses before anything runs. |
158 | | - const unsupported = classifyRunnerReportedError('BACK_UNSUPPORTED_PLATFORM'); |
159 | | - assert.equal(unsupported.code, 'COMMAND_FAILED'); |
160 | | - assert.equal(unsupported.details.runnerErrorCode, 'BACK_UNSUPPORTED_PLATFORM'); |
161 | | - assert.equal(unsupported.details.dispatched, 'no'); |
162 | | -}); |
163 | | - |
164 | | -// The exact reply the runner's visionOS arm sends: like every back code, only code, message, and hint. |
165 | | -// The host reads the code through the one classifier, so the dispatch comes from |
166 | | -// RUNNER_ERROR_CODE_DISPATCH, not from a fallback. |
167 | | -test('the visionOS back refusal reply is COMMAND_FAILED with its runner code and dispatched no', () => { |
168 | | - const error = buildRunnerResponseError({ |
169 | | - ok: false, |
170 | | - error: { |
171 | | - code: 'BACK_UNSUPPORTED_PLATFORM', |
172 | | - message: 'visionOS has no back gesture', |
173 | | - hint: 'iOS back is a left-edge swipe; visionOS has none. Press the visible back control by its ref.', |
174 | | - }, |
175 | | - }); |
176 | | - assert.equal(error.code, 'COMMAND_FAILED'); |
177 | | - assert.equal(error.details?.runnerErrorCode, 'BACK_UNSUPPORTED_PLATFORM'); |
178 | | - assert.equal(error.details?.dispatched, 'no'); |
179 | | - assert.equal(error.message, 'visionOS has no back gesture'); |
180 | 156 | }); |
181 | 157 |
|
182 | 158 | test('retryable requires an AppError with COMMAND_FAILED', () => { |
|
0 commit comments