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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/invalid-blobtype-iframe.html

Issue 2865313003: Upstream service worker tests to WPT (Closed)
Patch Set: Re-introduce resource script Created 3 years, 7 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: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/invalid-blobtype-iframe.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/invalid-blobtype-iframe.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/invalid-blobtype-iframe.html
deleted file mode 100644
index 8a3249d413320519cdd585f491b7a620191ca38d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/invalid-blobtype-iframe.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<script src="../../resources/testharness.js"></script>
-<script src="test-helpers.js"></script>
-<script>
-
-function xhr_send(method, data) {
- return new Promise(function(resolve, reject) {
- var xhr = new XMLHttpRequest();
- xhr.onload = function() {
- if (xhr.getResponseHeader('Content-Type') !== null) {
- reject('Content-Type must be null.');
- }
- resolve();
- };
- xhr.onerror = function() {
- reject('XHR must succeed.');
- };
- xhr.responseType = 'text';
- xhr.open(method, './dummy?test', true);
- xhr.send(data);
- });
-}
-
-
-window.addEventListener('message', function(evt) {
- var port = evt.ports[0];
- xhr_send('POST', 'test string')
- .then(function() { port.postMessage({results: 'finish'}); })
- .catch(function(e) { port.postMessage({results: 'failure:' + e}); });
- });
-</script>

Powered by Google App Engine
This is Rietveld 408576698