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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js

Issue 1079073003: Introducing FetchEventInit Dictionary. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | Source/modules/modules.gypi » ('j') | Source/modules/serviceworkers/FetchEvent.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js b/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js
index c3fc52a380f96684aac3c26d246f58c70f9009fb..d301b32b2d5266fa7b2320a1d932e9d3ce510899 100644
--- a/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js
+++ b/LayoutTests/http/tests/serviceworker/resources/interfaces-worker.js
@@ -72,4 +72,12 @@ promise_test(function(t) {
test(function() {
assert_equals(new ExtendableEvent('ExtendableEvent').type, 'ExtendableEvent');
+ assert_equals(new FetchEvent('FetchEvent').type, 'FetchEvent');
+ assert_equals(new FetchEvent('FetchEvent').cancelable, false);
+ assert_equals(new FetchEvent('FetchEvent').bubbles, false);
+ assert_equals(new FetchEvent('FetchEvent', {isReload : true}).isReload, true);
+ var req = new Request('http://localhost/',
+ {method: 'POST',
+ headers: [['Content-Type', 'Text/Html']]});
+ assert_equals(new FetchEvent('FetchEvent', {request : req, isReload : true}).request.url, 'http://localhost/');
falken 2015/04/20 09:15:19 We should wrap at 80 cols: https://www.chromium.or
Paritosh Kumar 2015/04/20 09:57:19 Thanks.
}, 'Event constructors');
« no previous file with comments | « no previous file | Source/modules/modules.gypi » ('j') | Source/modules/serviceworkers/FetchEvent.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698