Chromium Code Reviews| Index: LayoutTests/http/tests/serviceworker/chromium/resources/memory-cache-controlled.html |
| diff --git a/LayoutTests/http/tests/serviceworker/chromium/resources/memory-cache-controlled.html b/LayoutTests/http/tests/serviceworker/chromium/resources/memory-cache-controlled.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c7faec291ed7a583b2cb049f674d17d8685fa29c |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/serviceworker/chromium/resources/memory-cache-controlled.html |
| @@ -0,0 +1,12 @@ |
| +<script> |
| +var callback; |
| + |
| +function getJSON(url) { |
| + var sc = document.createElement('script'); |
| + sc.src = url; |
| + document.body.appendChild(sc); |
| + return new Promise(function(resolve) { |
| + callback = function(data) { resolve(data); } |
| + }); |
| +} |
| +</script> |