|
| 1 | +// Copyright (c) 2017-2026 Cloudflare, Inc. |
| 2 | +// Licensed under the Apache 2.0 license found in the LICENSE file or at: |
| 3 | +// https://opensource.org/licenses/Apache-2.0 |
| 4 | + |
| 5 | +import { type TestRunnerConfig } from 'harness/harness'; |
| 6 | + |
| 7 | +export default { |
| 8 | + 'ecmascript-binding/builtin-function-properties.any.js': {}, |
| 9 | + 'ecmascript-binding/class-string-interface.any.js': { |
| 10 | + comment: '@@toStringTag property descriptor mismatch', |
| 11 | + expectedFailures: [ |
| 12 | + '@@toStringTag exists on the prototype with the appropriate descriptor', |
| 13 | + ], |
| 14 | + }, |
| 15 | + 'ecmascript-binding/class-string-iterator-prototype-object.any.js': { |
| 16 | + comment: 'Iterator @@toStringTag is different in workerd', |
| 17 | + expectedFailures: [ |
| 18 | + '@@toStringTag exists with the appropriate descriptor', |
| 19 | + 'Object.prototype.toString', |
| 20 | + 'Object.prototype.toString applied to a null-prototype instance', |
| 21 | + ], |
| 22 | + }, |
| 23 | + 'ecmascript-binding/class-string-named-properties-object.window.js': { |
| 24 | + comment: 'Window-specific test', |
| 25 | + omittedTests: true, |
| 26 | + }, |
| 27 | + 'ecmascript-binding/es-exceptions/DOMException-constants.any.js': { |
| 28 | + comment: 'DOMException constants have wrong configurable descriptor', |
| 29 | + expectedFailures: true, |
| 30 | + }, |
| 31 | + 'ecmascript-binding/es-exceptions/DOMException-constructor-and-prototype.any.js': |
| 32 | + { |
| 33 | + comment: 'DOMException property descriptors differ from spec', |
| 34 | + expectedFailures: true, |
| 35 | + }, |
| 36 | + 'ecmascript-binding/es-exceptions/DOMException-constructor-behavior.any.js': { |
| 37 | + comment: 'DOMException property inheritance differs from spec', |
| 38 | + expectedFailures: true, |
| 39 | + }, |
| 40 | + 'ecmascript-binding/es-exceptions/DOMException-custom-bindings.any.js': { |
| 41 | + comment: 'DOMException property descriptors differ from spec', |
| 42 | + expectedFailures: true, |
| 43 | + }, |
| 44 | + 'ecmascript-binding/es-exceptions/DOMException-is-error.any.js': { |
| 45 | + comment: 'DOMException.prototype not in Error.prototype chain', |
| 46 | + expectedFailures: [''], |
| 47 | + }, |
| 48 | + 'ecmascript-binding/global-immutable-prototype.any.js': { |
| 49 | + comment: 'globalThis prototype is unconfigurable in workerd', |
| 50 | + expectedFailures: true, |
| 51 | + }, |
| 52 | + 'ecmascript-binding/global-mutable-prototype.any.js': { |
| 53 | + comment: 'globalThis prototype is unconfigurable in workerd', |
| 54 | + expectedFailures: true, |
| 55 | + }, |
| 56 | + 'ecmascript-binding/global-object-implicit-this-value.any.js': { |
| 57 | + comment: |
| 58 | + 'Script fails to load - addEventListener is not defined in workerd', |
| 59 | + expectedFailures: [ |
| 60 | + "Global object's getter throws when called on incompatible object", |
| 61 | + "Global object's setter throws when called on incompatible object", |
| 62 | + "Global object's operation throws when called on incompatible object", |
| 63 | + "Global object's getter works when called on null / undefined", |
| 64 | + "Global object's setter works when called on null / undefined", |
| 65 | + "Global object's operation works when called on null / undefined", |
| 66 | + ], |
| 67 | + }, |
| 68 | + 'ecmascript-binding/legacy-factor-function-subclass.window.js': { |
| 69 | + comment: 'Window-specific test', |
| 70 | + omittedTests: true, |
| 71 | + }, |
| 72 | + 'ecmascript-binding/legacy-factory-function-builtin-properties.window.js': { |
| 73 | + comment: 'Window-specific test', |
| 74 | + omittedTests: true, |
| 75 | + }, |
| 76 | + 'ecmascript-binding/legacy-platform-object/helper.js': {}, |
| 77 | + 'ecmascript-binding/no-regexp-special-casing.any.js': { |
| 78 | + comment: 'self.addEventListener is not available in workerd', |
| 79 | + expectedFailures: [ |
| 80 | + 'Conversion to a dictionary works', |
| 81 | + 'Conversion to a sequence works', |
| 82 | + 'Can be used as an object implementing a callback interface', |
| 83 | + ], |
| 84 | + }, |
| 85 | + 'ecmascript-binding/observable-array-no-leak-of-internals.window.js': { |
| 86 | + comment: 'Window-specific test', |
| 87 | + omittedTests: true, |
| 88 | + }, |
| 89 | + 'ecmascript-binding/observable-array-ownkeys.window.js': { |
| 90 | + comment: 'Window-specific test', |
| 91 | + omittedTests: true, |
| 92 | + }, |
| 93 | + 'ecmascript-binding/support/create-realm.js': {}, |
| 94 | + 'idlharness.any.js': { |
| 95 | + comment: 'Missing /resources/WebIDLParser.js resource file', |
| 96 | + omittedTests: true, |
| 97 | + }, |
| 98 | +} satisfies TestRunnerConfig; |
0 commit comments