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

Side by Side Diff: chrome/test/data/webui/net_internals/net_internals_test.js

Issue 11635023: First cut at UI for saving net_logs data into a temporary file on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 12 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 /** 5 /**
6 * @fileoverview The way these tests work is as follows: 6 * @fileoverview The way these tests work is as follows:
7 * C++ in net_internals_ui_browsertest.cc does any necessary setup, and then 7 * C++ in net_internals_ui_browsertest.cc does any necessary setup, and then
8 * calls the entry point for a test with RunJavascriptTest. The called 8 * calls the entry point for a test with RunJavascriptTest. The called
9 * function can then use the assert/expect functions defined in test_api.js. 9 * function can then use the assert/expect functions defined in test_api.js.
10 * All callbacks from the browser are wrapped in such a way that they can 10 * All callbacks from the browser are wrapped in such a way that they can
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 */ 239 */
240 var hashToTabHandleIdMap = { 240 var hashToTabHandleIdMap = {
241 capture: CaptureView.TAB_HANDLE_ID, 241 capture: CaptureView.TAB_HANDLE_ID,
242 export: ExportView.TAB_HANDLE_ID, 242 export: ExportView.TAB_HANDLE_ID,
243 import: ImportView.TAB_HANDLE_ID, 243 import: ImportView.TAB_HANDLE_ID,
244 proxy: ProxyView.TAB_HANDLE_ID, 244 proxy: ProxyView.TAB_HANDLE_ID,
245 events: EventsView.TAB_HANDLE_ID, 245 events: EventsView.TAB_HANDLE_ID,
246 timeline: TimelineView.TAB_HANDLE_ID, 246 timeline: TimelineView.TAB_HANDLE_ID,
247 dns: DnsView.TAB_HANDLE_ID, 247 dns: DnsView.TAB_HANDLE_ID,
248 sockets: SocketsView.TAB_HANDLE_ID, 248 sockets: SocketsView.TAB_HANDLE_ID,
249 mobile: MobileView.TAB_HANDLE_ID,
249 spdy: SpdyView.TAB_HANDLE_ID, 250 spdy: SpdyView.TAB_HANDLE_ID,
250 httpPipeline: HttpPipelineView.TAB_HANDLE_ID, 251 httpPipeline: HttpPipelineView.TAB_HANDLE_ID,
251 httpCache: HttpCacheView.TAB_HANDLE_ID, 252 httpCache: HttpCacheView.TAB_HANDLE_ID,
252 serviceProviders: ServiceProvidersView.TAB_HANDLE_ID, 253 serviceProviders: ServiceProvidersView.TAB_HANDLE_ID,
253 tests: TestView.TAB_HANDLE_ID, 254 tests: TestView.TAB_HANDLE_ID,
254 hsts: HSTSView.TAB_HANDLE_ID, 255 hsts: HSTSView.TAB_HANDLE_ID,
255 logs: LogsView.TAB_HANDLE_ID, 256 logs: LogsView.TAB_HANDLE_ID,
256 prerender: PrerenderView.TAB_HANDLE_ID, 257 prerender: PrerenderView.TAB_HANDLE_ID,
257 bandwidth: BandwidthView.TAB_HANDLE_ID, 258 bandwidth: BandwidthView.TAB_HANDLE_ID,
258 chromeos: CrosView.TAB_HANDLE_ID 259 chromeos: CrosView.TAB_HANDLE_ID
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 ]; 684 ];
684 685
685 for (var i = 0; i < allIds.length; ++i) { 686 for (var i = 0; i < allIds.length; ++i) {
686 var curId = allIds[i]; 687 var curId = allIds[i];
687 expectEquals(nodeId == curId, NetInternalsTest.nodeIsVisible($(curId))); 688 expectEquals(nodeId == curId, NetInternalsTest.nodeIsVisible($(curId)));
688 } 689 }
689 }; 690 };
690 691
691 return NetInternalsTest; 692 return NetInternalsTest;
692 })(); 693 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698