Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Unified Diff: LayoutTests/http/tests/serviceworker/resources/fetch-access-control-iframe.html

Issue 399543002: [ServiceWorker] Make fetch() method better conformance with the spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: indent and comment fix Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/serviceworker/resources/fetch-access-control-iframe.html
diff --git a/LayoutTests/http/tests/serviceworker/resources/fetch-access-control-iframe.html b/LayoutTests/http/tests/serviceworker/resources/fetch-access-control-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..a9de7d22fb49b30365a25cac120ff878d7adffb5
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/resources/fetch-access-control-iframe.html
@@ -0,0 +1,19 @@
+<script>
+function onMessage(event) {
+ var script = document.createElement('script');
+ script.src = event.data.url;
+ script.addEventListener(
+ 'error',
+ function() { report({jsonpResult:'error'}); });
+ document.body.appendChild(script);
+}
+function report(data) {
+ window.parent.postMessage(
+ data,
+ 'http://127.0.0.1:8000');
+}
+function onload() {
+ window.addEventListener('message', onMessage, false);
+}
+window.addEventListener('load', onload);
+</script>
falken 2014/07/25 05:41:29 This is also a new file and should conform to new
horo 2014/07/25 06:00:55 Done.

Powered by Google App Engine
This is Rietveld 408576698