mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Let resources timing entries be added to performance entry buffer.
Update relevant tests to properly report and expect failure. Update manifest.
This commit is contained in:
parent
a634f05024
commit
9eb3687b19
17 changed files with 92 additions and 70 deletions
|
@ -62,7 +62,7 @@ pub fn submit_timing_data(
|
||||||
PerformanceResourceTiming::new(global, url, initiator_type, None, resource_timing);
|
PerformanceResourceTiming::new(global, url, initiator_type, None, resource_timing);
|
||||||
global
|
global
|
||||||
.performance()
|
.performance()
|
||||||
.queue_entry(performance_entry.upcast::<PerformanceEntry>(), false);
|
.queue_entry(performance_entry.upcast::<PerformanceEntry>(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<Listener: PreInvoke + Send + 'static> NetworkListener<Listener> {
|
impl<Listener: PreInvoke + Send + 'static> NetworkListener<Listener> {
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
[avoid-reload-on-resize.html]
|
||||||
|
[Avoid srcset image reloads when viewport resizes]
|
||||||
|
expected: FAIL
|
||||||
|
|
|
@ -9,6 +9,3 @@
|
||||||
|
|
||||||
[case-sensitivity.any.html]
|
[case-sensitivity.any.html]
|
||||||
type: testharness
|
type: testharness
|
||||||
[getEntriesByName values are case sensitive]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -70,9 +70,6 @@
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "workerStart" with the proper type]
|
[PerformanceResourceTiming interface: resource must inherit property "workerStart" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "initiatorType" with the proper type]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: attribute transferSize]
|
[PerformanceResourceTiming interface: attribute transferSize]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -82,66 +79,36 @@
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "secureConnectionStart" with the proper type]
|
[PerformanceResourceTiming interface: resource must inherit property "secureConnectionStart" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "requestStart" with the proper type]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "transferSize" with the proper type]
|
[PerformanceResourceTiming interface: resource must inherit property "transferSize" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "domainLookupStart" with the proper type]
|
[PerformanceResourceTiming interface: resource must inherit property "domainLookupStart" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "connectStart" with the proper type]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: attribute decodedBodySize]
|
[PerformanceResourceTiming interface: attribute decodedBodySize]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Stringification of resource]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "redirectStart" with the proper type]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "toJSON()" with the proper type]
|
[PerformanceResourceTiming interface: resource must inherit property "toJSON()" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "responseEnd" with the proper type]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "redirectEnd" with the proper type]
|
[PerformanceResourceTiming interface: resource must inherit property "redirectEnd" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "nextHopProtocol" with the proper type]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "domainLookupEnd" with the proper type]
|
[PerformanceResourceTiming interface: resource must inherit property "domainLookupEnd" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "decodedBodySize" with the proper type]
|
[PerformanceResourceTiming interface: resource must inherit property "decodedBodySize" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "fetchStart" with the proper type]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: attribute encodedBodySize]
|
[PerformanceResourceTiming interface: attribute encodedBodySize]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "connectEnd" with the proper type]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "encodedBodySize" with the proper type]
|
[PerformanceResourceTiming interface: resource must inherit property "encodedBodySize" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: operation toJSON()]
|
[PerformanceResourceTiming interface: operation toJSON()]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: resource must inherit property "responseStart" with the proper type]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[PerformanceResourceTiming must be primary interface of resource]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[PerformanceResourceTiming interface: attribute secureConnectionStart]
|
[PerformanceResourceTiming interface: attribute secureConnectionStart]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
[no-entries-for-cross-origin-css-fetched.sub.html]
|
||||||
|
[Make sure that resources fetched by cross origin CSS are not in the timeline.]
|
||||||
|
expected: FAIL
|
||||||
|
|
|
@ -5,27 +5,15 @@
|
||||||
[domainLookupEnd should not be 0 in timing-allow cross-origin request.]
|
[domainLookupEnd should not be 0 in timing-allow cross-origin request.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[connectStart should not be 0 in timing-allow cross-origin request.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[connectEnd should not be 0 in timing-allow cross-origin request.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[requestStart should not be 0 in timing-allow cross-origin request.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[responseStart should not be 0 in timing-allow cross-origin request.]
|
[responseStart should not be 0 in timing-allow cross-origin request.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[fetchStart should not be 0 in timing-allow cross-origin request.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[responseEnd should not be 0 in timing-allow cross-origin request.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[redirectEnd should be 0 in cross-origin request since no redirect.]
|
[redirectEnd should be 0 in cross-origin request since no redirect.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[secureConnectionStart should be 0 in cross-origin request since no ssl!]
|
[secureConnectionStart should be 0 in cross-origin request since no ssl!]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
[The iframe should have one resource timing entry.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
[resource_TAO_zero.htm]
|
[resource_TAO_zero.htm]
|
||||||
[fetchStart should be greater than 0 in cross-origin request.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[responseEnd should be greater than 0 in cross-origin request.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[secureConnectionStart should be 0 in cross-origin request.]
|
[secureConnectionStart should be 0 in cross-origin request.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -17,3 +11,15 @@
|
||||||
[redirectEnd should be 0 in cross-origin request.]
|
[redirectEnd should be 0 in cross-origin request.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
[connectEnd should be 0 in cross-origin request.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[connectStart should be 0 in cross-origin request.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[There should be one resource timing entry.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[requestStart should be 0 in cross-origin request.]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -2,3 +2,18 @@
|
||||||
[There should be 2 PerformanceEntries]
|
[There should be 2 PerformanceEntries]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
[domainLookupEnd and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[connectStart and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[domainLookupStart and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[secureConnectionStart should be zero]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[connectEnd and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -2,3 +2,18 @@
|
||||||
[There should be 2 PerformanceEntries]
|
[There should be 2 PerformanceEntries]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
[secureConnectionStart and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[domainLookupEnd and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[connectStart and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[domainLookupStart and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[connectEnd and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -2,3 +2,18 @@
|
||||||
[There should be 2 PerformanceEntries]
|
[There should be 2 PerformanceEntries]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
[secureConnectionStart and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[domainLookupEnd and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[connectStart and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[domainLookupStart and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[connectEnd and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -2,3 +2,18 @@
|
||||||
[There should be 2 PerformanceEntries]
|
[There should be 2 PerformanceEntries]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
[secureConnectionStart and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[domainLookupEnd and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[connectStart and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[domainLookupStart and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[connectEnd and fetchStart should be the same]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
[resource_dedicated_worker.html]
|
|
||||||
[There should be six entries: 4 scripts, 1 stylesheet, and the worker itself]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -15,9 +15,6 @@
|
||||||
[PerformanceEntry has correct protocol attribute (iframe)]
|
[PerformanceEntry has correct protocol attribute (iframe)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[window.performance.getEntriesByName() and window.performance.getEntriesByNameType() return same data (img)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[PerformanceEntry has correct name, initiatorType, startTime, and duration (img)]
|
[PerformanceEntry has correct name, initiatorType, startTime, and duration (img)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -51,9 +51,6 @@
|
||||||
[PerformanceEntry has correct protocol attribute (xmlhttprequest)]
|
[PerformanceEntry has correct protocol attribute (xmlhttprequest)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[window.performance.getEntriesByName() and window.performance.getEntriesByNameType() return same data (img)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[PerformanceEntry has correct order of timing attributes (script)]
|
[PerformanceEntry has correct order of timing attributes (script)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -18,3 +18,9 @@
|
||||||
[performance.toJSON is available in workers]
|
[performance.toJSON is available in workers]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
[performance.clearResourceTimings in workers]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[performance.setResourceTimingBufferSize in workers]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -21110,7 +21110,7 @@
|
||||||
"support"
|
"support"
|
||||||
],
|
],
|
||||||
"mozilla/xmlhttprequest_url.html": [
|
"mozilla/xmlhttprequest_url.html": [
|
||||||
"e5d10f27c06e1febd3bb70f8f128194fc3f63861",
|
"3a765c1e45b0ff25d9161e70f2ad0718769a4cdb",
|
||||||
"testharness"
|
"testharness"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -19,7 +19,7 @@ async_test(function(t) {
|
||||||
|
|
||||||
request.onload = t.step_func_done(function() {
|
request.onload = t.step_func_done(function() {
|
||||||
let entries = window.performance.getEntriesByType("resource");
|
let entries = window.performance.getEntriesByType("resource");
|
||||||
assert_equals(entries.length, 1);
|
assert_equals(entries.length, 3);
|
||||||
assert_equals(entries[0].name, href);
|
assert_equals(entries[0].name, href);
|
||||||
});
|
});
|
||||||
}, "Performance entries should contain the URL where the XMLHttpRequest originated");
|
}, "Performance entries should contain the URL where the XMLHttpRequest originated");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue