Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the hr-time IDL file #11862

Merged

Conversation

lukebjerring
Copy link
Contributor

Hello reviewer(s),

This PR is intended to consolidate the spec’s IDL definition with the WPT test suite’s copy, and any idlharness tests.

The up-to-date copy of the IDL file was automatically extracted from the reffy-reports repo (https://github.com/tidoust/reffy-reports/tree/master/whatwg/idl) which scrapes known specs automatically + regulary.

This PR is part of a migration project which will eventually be automatically updating and creating PRs for changes in spec IDL.

Please check that:
The spec (and its source) is correct and up-to-date
All tests which cover the IDL in the spec have been migrated to fetch + use the idl in the interfaces/ directory (instead of inline copies in the test files).

readonly attribute DOMHighResTimeStamp timeOrigin;
[Default] object toJSON();
};

partial interface WindowOrWorkerGlobalScope {
partial interface mixin WindowOrWorkerGlobalScope {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in spec here? Doesn't this parse error break the test entirely?

Copy link
Contributor Author

@lukebjerring lukebjerring Jul 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's supposed to be a typo?
EDIT: discussed offline; it is supposed to be interface mixin (not just mixin).

@lukebjerring lukebjerring force-pushed the idl-file-updates-hr-time branch from 0f60ab7 to e2deb12 Compare July 23, 2018 13:43
@lukebjerring
Copy link
Contributor Author

Tweaked the test to cover Window and WorkerGlobalScope until #8053 is fixed. PTAL.

@lukebjerring lukebjerring force-pushed the idl-file-updates-hr-time branch from e2deb12 to 0229a36 Compare August 2, 2018 13:08
Copy link
Member

@foolip foolip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally in Chrome and Firefox, 20/20 pass in both.

@foolip foolip merged commit 0bf08b6 into web-platform-tests:master Aug 3, 2018
@lukebjerring lukebjerring deleted the idl-file-updates-hr-time branch October 5, 2018 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants