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

Side by Side Diff: chrome/test/data/extensions/api_test/webrequest/test_types.js

Issue 2449913002: Support WebSocket in WebRequest API. (Closed)
Patch Set: git cl format Created 3 years, 10 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 function getStyleURL() { 5 function getStyleURL() {
6 // This is not a style sheet, but it must still be classified as "stylesheet" 6 // This is not a style sheet, but it must still be classified as "stylesheet"
7 // because it is loaded as a style sheet. 7 // because it is loaded as a style sheet.
8 return getServerURL('empty.html?as-style'); 8 return getServerURL('empty.html?as-style');
9 } 9 }
10 10
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 [['onBeforeRequest', 'onBeforeSendHeaders', 'onSendHeaders', 699 [['onBeforeRequest', 'onBeforeSendHeaders', 'onSendHeaders',
700 'onHeadersReceived', 'onResponseStarted', 'onCompleted']], { 700 'onHeadersReceived', 'onResponseStarted', 'onCompleted']], {
701 urls: ['<all_urls>'], types: ['csp_report'] 701 urls: ['<all_urls>'], types: ['csp_report']
702 }); 702 });
703 703
704 var frame = document.createElement('iframe'); 704 var frame = document.createElement('iframe');
705 frame.src = 705 frame.src =
706 getServerURL('extensions/api_test/webrequest/csp/violation.html'); 706 getServerURL('extensions/api_test/webrequest/csp/violation.html');
707 document.body.appendChild(frame); 707 document.body.appendChild(frame);
708 }, 708 },
709
710 // Note: The 'websocket' type is tested separately in 'test_websocket.js' and
711 // 'test_websocket_auth.js'.
709 ]); 712 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698