Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #18283 - ferjm:user.timing.api, r=jdm
User Timing API - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #18109 - [X] There are tests for these changes. I enabled the peformance-timeline API WPTs but some of them are still failing because of implementation bugs or missing APIs (Resource Timing, for instance) the tests are dependent of. I'll file issues to fix them. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18283) <!-- Reviewable:end -->
- Loading branch information
Showing
18 changed files
with
281 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
impl_performance_entry_struct!(PerformanceMarkBinding, | ||
PerformanceMark, | ||
"mark"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
impl_performance_entry_struct!(PerformanceMeasureBinding, | ||
PerformanceMeasure, | ||
"measure"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* | ||
* The origin of this IDL file is | ||
* https://w3c.github.io/user-timing/#performancemark | ||
*/ | ||
|
||
[Exposed=(Window,Worker)] | ||
interface PerformanceMark : PerformanceEntry { | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* | ||
* The origin of this IDL file is | ||
* https://w3c.github.io/user-timing/#performancemeasure | ||
*/ | ||
|
||
[Exposed=(Window,Worker)] | ||
interface PerformanceMeasure : PerformanceEntry { | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
tests/wpt/metadata/performance-timeline/case-sensitivity.any.js.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[case-sensitivity.any.worker.html] | ||
type: testharness | ||
[getEntriesByType values are case sensitive] | ||
expected: FAIL | ||
|
||
[getEntriesByName values are case sensitive] | ||
expected: FAIL | ||
|
||
|
||
[case-sensitivity.any.html] | ||
type: testharness | ||
[getEntriesByType values are case sensitive] | ||
expected: FAIL | ||
|
||
[getEntriesByName values are case sensitive] | ||
expected: FAIL | ||
|
13 changes: 13 additions & 0 deletions
13
tests/wpt/metadata/performance-timeline/po-disconnect.any.js.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[po-disconnect.any.html] | ||
type: testharness | ||
expected: TIMEOUT | ||
[An observer disconnected after a mark must receive the mark] | ||
expected: TIMEOUT | ||
|
||
|
||
[po-disconnect.any.worker.html] | ||
type: testharness | ||
expected: TIMEOUT | ||
[disconnected callbacks must not be invoked] | ||
expected: TIMEOUT | ||
|
9 changes: 9 additions & 0 deletions
9
tests/wpt/metadata/performance-timeline/po-getentries.any.js.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[po-getentries.any.html] | ||
type: testharness | ||
|
||
[po-getentries.any.worker.html] | ||
type: testharness | ||
expected: TIMEOUT | ||
[getEntries, getEntriesByType and getEntriesByName work] | ||
expected: TIMEOUT | ||
|
6 changes: 6 additions & 0 deletions
6
tests/wpt/metadata/performance-timeline/po-mark-measure.any.js.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[po-mark-measure.any.html] | ||
type: testharness | ||
|
||
[po-mark-measure.any.worker.html] | ||
type: testharness | ||
expected: CRASH |
5 changes: 5 additions & 0 deletions
5
tests/wpt/metadata/performance-timeline/po-navigation.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[po-navigation.html] | ||
type: testharness | ||
[navigation entry is observable] | ||
expected: FAIL | ||
|
9 changes: 9 additions & 0 deletions
9
tests/wpt/metadata/performance-timeline/po-observe.any.js.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[po-observe.any.worker.html] | ||
type: testharness | ||
expected: CRASH | ||
|
||
[po-observe.any.html] | ||
type: testharness | ||
[replace observer if already present] | ||
expected: FAIL | ||
|
Oops, something went wrong.