зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1459140 [wpt PR 10840] - [Resource-Timing] Fix `initiatorType` values, a=testonly
Automatic update from web-platform-tests[Resource-Timing] Fix `initiatorType` values There were multiple issues with current `initiatorType` implementation: * `fetch()` resources had an empty value instead of "fetch" * `<video>` resources had an empty value instead of "video" * `<audio>` resources had an empty value instead of "audio" * `<track>` resources had "texttrack" value instead of "track" * EventSource resources had an empty value instead of "other" On top of that, the test to make sure the above is all in check had some values that were not aligned to the spec, and was disabled due to the flakiness of audio and video loads. This CL fixes the above values, fixes the test to be more spec compliant and enables it. Bug: 649571, 822757 Change-Id: I1dc6fd35e5e4bc570cbbb7d743dc02279bf42b8b Reviewed-on: https://chromium-review.googlesource.com/1040925 Commit-Queue: Yoav Weiss <yoav@yoav.ws> Reviewed-by: Timothy Dresser <tdresser@chromium.org> Reviewed-by: Nicolás Peña Moreno <npm@chromium.org> Cr-Commit-Position: refs/heads/master@{#562221} -- wpt-commits: 0d81b471c71053f3b871a47414233c8f06732e78 wpt-pr: 10840
This commit is contained in:
Родитель
2e0113c751
Коммит
8b10a1b381
|
@ -600419,7 +600419,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"resource-timing/resource_initiator_types.html": [
|
||||
"b05a2dfad953398d6b31f11055606f2f3694a9af",
|
||||
"7cb0db4825afda3877fc183279adc58dca0399ea",
|
||||
"testharness"
|
||||
],
|
||||
"resource-timing/resource_memory_cached.sub.html": [
|
||||
|
|
|
@ -111,14 +111,14 @@ function perform_test() {
|
|||
addEntryIfExists(entries, expected_entries, pathname + 'blue.png?id=object', 'object');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'blue.png?id=video-poster', 'video');
|
||||
addEntryIfExists(entries, expected_entries, '/media/test.mp4?id=video-src', 'video');
|
||||
addEntryIfExists(entries, expected_entries, '/media/test.mp4?id=video-source', 'source');
|
||||
addEntryIfExists(entries, expected_entries, '/media/test.ogv?id=video-source', 'source');
|
||||
addEntryIfExists(entries, expected_entries, '/media/test.mp4?id=video-source', 'video');
|
||||
addEntryIfExists(entries, expected_entries, '/media/test.ogv?id=video-source', 'video');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'empty.py?id=video-track', 'track');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'empty.py?id=audio-src', 'audio');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'empty.py?id=audio-source-wav', 'source');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'empty.py?id=audio-source-mpeg', 'source');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'empty.py?id=audio-source-ogg', 'source');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'blue.png?id=picture-source', 'source');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'empty.py?id=audio-source-wav', 'audio');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'empty.py?id=audio-source-mpeg', 'audio');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'empty.py?id=audio-source-ogg', 'audio');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'blue.png?id=picture-source', 'img');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'blue.png?id=picture-img', 'img');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'blue.png?id=picture-notsupported-img', 'img');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'blue.png?id=picture-img-src', 'img');
|
||||
|
@ -133,7 +133,7 @@ function perform_test() {
|
|||
addEntryIfExists(entries, expected_entries, pathname + 'empty.py?id=beacon', 'beacon');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'empty.py?id=fetch', 'fetch');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'empty.py?favicon', 'link');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'eventsource.py?id=eventsource', 'eventsource');
|
||||
addEntryIfExists(entries, expected_entries, pathname + 'eventsource.py?id=eventsource', 'other');
|
||||
|
||||
test_resource_entries(entries, expected_entries);
|
||||
done();
|
||||
|
|
Загрузка…
Ссылка в новой задаче