Modified: trunk/LayoutTests/imported/w3c/ChangeLog (237340 => 237341)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2018-10-22 23:58:49 UTC (rev 237340)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2018-10-23 00:15:40 UTC (rev 237341)
@@ -1,3 +1,17 @@
+2018-10-12 Jiewen Tan <[email protected]>
+
+ Update web-platform-tests/resource-timing
+ https://bugs.webkit.org/show_bug.cgi?id=190550
+
+ Reviewed by Youenn Fablet.
+
+ * resources/import-expectations.json:
+ * web-platform-tests/resource-timing/resource_initiator_types-expected.txt:
+ * web-platform-tests/resource-timing/resource_subframe_self_navigation-expected.txt:
+ * web-platform-tests/resource-timing/resource_timing_buffer_full_eventually.html:
+ * web-platform-tests/resource-timing/resources/TAOResponse.py:
+ (main):
+
2018-10-20 YUHAN WU <[email protected]>
MediaRecorder should fire a stop event when all tracks are ended
Modified: trunk/LayoutTests/imported/w3c/resources/import-expectations.json (237340 => 237341)
--- trunk/LayoutTests/imported/w3c/resources/import-expectations.json 2018-10-22 23:58:49 UTC (rev 237340)
+++ trunk/LayoutTests/imported/w3c/resources/import-expectations.json 2018-10-23 00:15:40 UTC (rev 237341)
@@ -353,4 +353,4 @@
"web-platform-tests/worklets": "skip",
"web-platform-tests/x-frame-options": "skip",
"web-platform-tests/xhr": "import"
-}
+}
\ No newline at end of file
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/resource-timing/resource_initiator_types-expected.txt (237340 => 237341)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/resource-timing/resource_initiator_types-expected.txt 2018-10-22 23:58:49 UTC (rev 237340)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/resource-timing/resource_initiator_types-expected.txt 2018-10-23 00:15:40 UTC (rev 237341)
@@ -21,6 +21,7 @@
PASS http://localhost:8800/resource-timing/resources/blue.png?id=picture-source is expected to have initiatorType img
PASS http://localhost:8800/resource-timing/resources/blue.png?id=svg-image is expected to have initiatorType image
PASS http://localhost:8800/resource-timing/resources/blue.png?id=video-poster is expected to have initiatorType video
+PASS http://localhost:8800/resource-timing/resources/empty.py?id=audio-source-mpeg is expected to have initiatorType audio
PASS http://localhost:8800/resource-timing/resources/empty.py?id=audio-source-wav is expected to have initiatorType audio
PASS http://localhost:8800/resource-timing/resources/empty.py?id=audio-src is expected to have initiatorType audio
PASS http://localhost:8800/resource-timing/resources/empty.py?id=fetch is expected to have initiatorType fetch
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/resource-timing/resource_timing_buffer_full_eventually.html (237340 => 237341)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/resource-timing/resource_timing_buffer_full_eventually.html 2018-10-22 23:58:49 UTC (rev 237340)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/resource-timing/resource_timing_buffer_full_eventually.html 2018-10-23 00:15:40 UTC (rev 237341)
@@ -16,15 +16,23 @@
function() {
// Scripts appended in JS to ensure setResourceTimingBufferSize is called before.
let counter = performance.getEntriesByType("resource").length;
- function appendScript() {
- const src = "" + counter;
- const script = document.createElement('script');
- script.type = 'text/_javascript_';
- script._onload_ = function() { ++counter; appendScript()};
- script.src = ""
- document.body.appendChild(script);
+ function appendScripts() {
+ const documentFragment = document.createDocumentFragment();
+ // Add 100 elements at a time to avoid page reflow every time.
+ let numScriptsAccumulated = 0;
+ while (numScriptsAccumulated < 100) {
+ const src = "" + counter;
+ const script = document.createElement('script');
+ script.type = 'text/_javascript_';
+ script.src = ""
+ documentFragment.appendChild(script);
+ ++counter;
+ ++numScriptsAccumulated;
+ }
+ document.body.appendChild(documentFragment);
+ t.step_timeout(appendScripts, 20);
}
- appendScript();
+ appendScripts();
});
</script>
</body>
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/resource-timing/resources/TAOResponse.py (237340 => 237341)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/resource-timing/resources/TAOResponse.py 2018-10-22 23:58:49 UTC (rev 237340)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/resource-timing/resources/TAOResponse.py 2018-10-23 00:15:40 UTC (rev 237341)
@@ -17,22 +17,22 @@
# case-sensitive match for origin, pass
response.headers.set('Timing-Allow-Origin', origin)
elif tao == 'space':
- # space seperated list of origin and wildcard, fail
+ # space separated list of origin and wildcard, fail
response.headers.set('Timing-Allow-Origin', (origin + ' *'))
elif tao == 'multi':
- # more than one TAO values, seperated by comma, pass
+ # more than one TAO values, separated by comma, pass
response.headers.set('Timing-Allow-Origin', origin)
response.headers.append('Timing-Allow-Origin', '*')
elif tao == 'multi_wildcard':
- # multiple wildcards, seperated by comma, pass
+ # multiple wildcards, separated by comma, pass
response.headers.set('Timing-Allow-Origin', '*')
response.headers.append('Timing-Allow-Origin', '*')
elif tao == 'match_origin':
- # contains a match of origin, seperated by comma, pass
+ # contains a match of origin, separated by comma, pass
response.headers.set('Timing-Allow-Origin', origin)
response.headers.append('Timing-Allow-Origin', "fake")
elif tao == 'match_wildcard':
- # contains a wildcard, seperated by comma, pass
+ # contains a wildcard, separated by comma, pass
response.headers.set('Timing-Allow-Origin', "fake")
response.headers.append('Timing-Allow-Origin', '*')
elif tao == 'uppercase':