Skip to content

Update the user-timing IDL file - #9837

Merged
foolip merged 11 commits into
web-platform-tests:masterfrom
lukebjerring:idl-file-updates-user-timing
Jun 8, 2018
Merged

foolip merged 11 commits into
web-platform-tests:masterfrom
lukebjerring:idl-file-updates-user-timing

Conversation

@lukebjerring

@lukebjerring lukebjerring commented Mar 5, 2018 •

Copy link
Copy Markdown
Contributor

No description provided.

@wpt-pr-bot
wpt-pr-bot requested review from jensl and yuki3 March 5, 2018 19:03
@lukebjerring
lukebjerring force-pushed the idl-file-updates-user-timing branch from ef9001d to b294daa Compare March 7, 2018 20:32
Comment thread interfaces/user-timing.idl Outdated
@@ -0,0 +1,17 @@

partial interface Performance {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@lukebjerring, indentation problem still persists.

@foolip

foolip commented Mar 21, 2018

Copy link
Copy Markdown
Member

Hmm, and why is Travis unhappy?

@foolip

foolip commented Jun 5, 2018

Copy link
Copy Markdown
Member

@lukebjerring looks like this needs a test to exercise the IDL?

@lukebjerring

Copy link
Copy Markdown
Contributor Author

I've updated the user-timing/idlharness.html test to be .any.js, since it's exposed on both worker + window, and changed the test to use the IDL. PTAL.

@lukebjerring

Copy link
Copy Markdown
Contributor Author

cc @npm1 who was helping me work out whether using .any.js was the right thing to do. Note that we see a large number of .any.worker.html results with:

assert_own_property: self does not have own property "PerformanceMark" expected property "PerformanceMark" missing

Goes a bit beyond my understanding of the implementation of idlharness. @foolip - any idea whether that's to be expected?

promise_test(async () => {
const idl_array = new IdlArray();
const idl = await fetch("/interfaces/user-timing.idl").then(r => r.text());
const hrtime = await fetch("/interfaces/hr-time.idl").then(r => r.text());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

you need to import /interfaces/performance-timeline.idl as well, since PerformanceMark depends on PerformanceEntry.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Alright, I'll pull in #9809 to this PR.

@foolip foolip left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested locally, .worker.html tests will reveal some things that don't match the spec in Chromium :) 👍

@foolip
foolip merged commit 8cce357 into web-platform-tests:master Jun 8, 2018
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.

4 participants