Skip to content

*.any.js / .window.js crashtests #60972

Description

@gsnedders

We currently have in WPT:

./dom/observable/tentative/crashtests/observable-gc.any.js
./dom/observable/tentative/crashtests/observable-takeUntil-toArray.any.js
./fetch/api/crashtests/huge-fetch.any.js
./IndexedDB/crashtests/create-index.any.js
./permissions/crashtests/permissions-query-worker.window.js
./permissions/crashtests/permissions-query.any.js
./streams/readable-byte-streams/crashtests/tee-locked-stream.any.js
./streams/readable-streams/crashtests/garbage-collection.any.js
./streams/writable-streams/crashtests/garbage-collection.any.js
./WebCryptoAPI/import_export/crashtests/importKey-unsettled-promise.https.any.js

These are all picked up as testharness tests, because of self.markup_type being None in:

@property
def name_is_crashtest(self) -> bool:
return (self.markup_type is not None and
(self.type_flag == "crash" or "crashtests" in self.dir_path.split(os.path.sep)))

This is in clear contrast to any testharness-in-HTML file, where the self.markup_type would be "html".

The *.window.js case seems simple: it should be the same as any "normal" testharness case.

The *.any.js one is maybe more complex, if we want the crash tests to run across all the different globals.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions