Closed Bug 1545038 Opened 5 years ago Closed 5 years ago

Figure out what to do with test262 realm tests that pass with same-compartment realms

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(1 file)

We are skipping a number of realm-related tests in jstests.list that now do the right thing with same-compartment realms (the default behavior in the shell), but still fail with --more-compartments (the old behavior).

It would be nice to figure out a way to run these tests. Maybe only skip them if --more-compartments is used?

Applies to at least the following:

skip script test262/built-ins/Function/internals/Call/class-ctor-realm.js

skip script test262/built-ins/Proxy/apply/arguments-realm.js
skip script test262/built-ins/Proxy/apply/trap-is-not-callable-realm.js
skip script test262/built-ins/Proxy/construct/arguments-realm.js
skip script test262/built-ins/Proxy/construct/trap-is-not-callable-realm.js
skip script test262/built-ins/Proxy/defineProperty/desc-realm.js
skip script test262/built-ins/Proxy/defineProperty/null-handler-realm.js
skip script test262/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable-realm.js
skip script test262/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target-realm.js
skip script test262/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-realm.js
skip script test262/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor-realm.js
skip script test262/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible-realm.js
skip script test262/built-ins/Proxy/defineProperty/trap-is-not-callable-realm.js
skip script test262/built-ins/Proxy/deleteProperty/trap-is-not-callable-realm.js
skip script test262/built-ins/Proxy/get/trap-is-not-callable-realm.js
skip script test262/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js
skip script test262/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable-realm.js
skip script test262/built-ins/Proxy/getPrototypeOf/trap-is-not-callable-realm.js
skip script test262/built-ins/Proxy/has/trap-is-not-callable-realm.js
skip script test262/built-ins/Proxy/isExtensible/trap-is-not-callable-realm.js
skip script test262/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js
skip script test262/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js
skip script test262/built-ins/Proxy/preventExtensions/trap-is-not-callable-realm.js
skip script test262/built-ins/Proxy/set/trap-is-not-callable-realm.js
skip script test262/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js

skip script test262/built-ins/Array/length/define-own-prop-length-overflow-realm.js

skip script test262/built-ins/RegExp/prototype/multiline/cross-realm.js
skip script test262/built-ins/RegExp/prototype/global/cross-realm.js
skip script test262/built-ins/RegExp/prototype/sticky/cross-realm.js
skip script test262/built-ins/RegExp/prototype/ignoreCase/cross-realm.js
skip script test262/built-ins/RegExp/prototype/unicode/cross-realm.js
skip script test262/built-ins/RegExp/prototype/source/cross-realm.js

Oh I see it's possible to use skip-if syntax in jstests.list. That might be an option.

Test coverage, tech debt -> P2.

Priority: -- → P2
Assignee: nobody → jdemooij
Status: NEW → ASSIGNED

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:jandem, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(jdemooij)
Pushed by jdemooij@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/109f0deb14a4
Add an ignore-flag directive to jsreftest harness to allow running tests that pass without --more-compartments. r=jorendorff
Flags: needinfo?(jdemooij)
Flags: needinfo?(jdemooij)
Pushed by apavel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5f26741abcac
Add an ignore-flag directive to jsreftest harness to allow running tests that pass without --more-compartments. r=jorendorff
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Flags: needinfo?(jdemooij)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: