Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-resources-iframe.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-resources-iframe.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-resources-iframe.html |
index 00c58386d79c5b850809296ebd0e9c5beb096396..f13129c5f9182d1d6526e3315c230f65a94670ef 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-resources-iframe.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-resources-iframe.html |
@@ -48,5 +48,13 @@ function load_css_image_set(url, type) { |
div.style[type] = '-webkit-image-set(url(' + url + ') 1x)'; |
} |
+function load_audio(url, cross_origin) { |
+ var audio = document.createElement('audio'); |
+ if (cross_origin != '') { |
+ audio.crossOrigin = cross_origin; |
+ } |
+ audio.src = url; |
+ document.body.appendChild(audio); |
+} |
</script> |
</body> |