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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/modules/modules.gypi » ('j') | Source/modules/serviceworkers/FetchEvent.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 importScripts('interfaces.js'); 1 importScripts('interfaces.js');
2 importScripts('worker-testharness.js'); 2 importScripts('worker-testharness.js');
3 importScripts('/resources/testharness-helpers.js'); 3 importScripts('/resources/testharness-helpers.js');
4 4
5 var EVENT_HANDLER = 'object'; 5 var EVENT_HANDLER = 'object';
6 6
7 test(function() { 7 test(function() {
8 verify_interface('ServiceWorkerGlobalScope', 8 verify_interface('ServiceWorkerGlobalScope',
9 self, 9 self,
10 { 10 {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 addAll: 'function', 65 addAll: 'function',
66 put: 'function', 66 put: 'function',
67 delete: 'function', 67 delete: 'function',
68 keys: 'function' 68 keys: 'function'
69 }); 69 });
70 }); 70 });
71 }, 'Cache'); 71 }, 'Cache');
72 72
73 test(function() { 73 test(function() {
74 assert_equals(new ExtendableEvent('ExtendableEvent').type, 'ExtendableEvent' ); 74 assert_equals(new ExtendableEvent('ExtendableEvent').type, 'ExtendableEvent' );
75 assert_equals(new FetchEvent('FetchEvent').type, 'FetchEvent');
76 assert_equals(new FetchEvent('FetchEvent').cancelable, false);
77 assert_equals(new FetchEvent('FetchEvent').bubbles, false);
78 assert_equals(new FetchEvent('FetchEvent', {isReload : true}).isReload, true );
79 var req = new Request('http://localhost/',
80 {method: 'POST',
81 headers: [['Content-Type', 'Text/Html']]});
82 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.
75 }, 'Event constructors'); 83 }, 'Event constructors');
OLDNEW
« 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