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

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

Issue 10185003: Remove net-internals page for throttling, introduce flag for extension devs instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 export: ExportView.TAB_HANDLE_ID, 234 export: ExportView.TAB_HANDLE_ID,
235 import: ImportView.TAB_HANDLE_ID, 235 import: ImportView.TAB_HANDLE_ID,
236 proxy: ProxyView.TAB_HANDLE_ID, 236 proxy: ProxyView.TAB_HANDLE_ID,
237 events: EventsView.TAB_HANDLE_ID, 237 events: EventsView.TAB_HANDLE_ID,
238 timeline: TimelineView.TAB_HANDLE_ID, 238 timeline: TimelineView.TAB_HANDLE_ID,
239 dns: DnsView.TAB_HANDLE_ID, 239 dns: DnsView.TAB_HANDLE_ID,
240 sockets: SocketsView.TAB_HANDLE_ID, 240 sockets: SocketsView.TAB_HANDLE_ID,
241 spdy: SpdyView.TAB_HANDLE_ID, 241 spdy: SpdyView.TAB_HANDLE_ID,
242 httpPipeline: HttpPipelineView.TAB_HANDLE_ID, 242 httpPipeline: HttpPipelineView.TAB_HANDLE_ID,
243 httpCache: HttpCacheView.TAB_HANDLE_ID, 243 httpCache: HttpCacheView.TAB_HANDLE_ID,
244 httpThrottling: HttpThrottlingView.TAB_HANDLE_ID,
245 serviceProviders: ServiceProvidersView.TAB_HANDLE_ID, 244 serviceProviders: ServiceProvidersView.TAB_HANDLE_ID,
246 tests: TestView.TAB_HANDLE_ID, 245 tests: TestView.TAB_HANDLE_ID,
247 hsts: HSTSView.TAB_HANDLE_ID, 246 hsts: HSTSView.TAB_HANDLE_ID,
248 logs: LogsView.TAB_HANDLE_ID, 247 logs: LogsView.TAB_HANDLE_ID,
249 prerender: PrerenderView.TAB_HANDLE_ID, 248 prerender: PrerenderView.TAB_HANDLE_ID,
250 chromeos: CrosView.TAB_HANDLE_ID 249 chromeos: CrosView.TAB_HANDLE_ID
251 }; 250 };
252 251
253 assertEquals(typeof hashToTabHandleIdMap[hash], 'string', 252 assertEquals(typeof hashToTabHandleIdMap[hash], 'string',
254 'Invalid tab anchor: ' + hash); 253 'Invalid tab anchor: ' + hash);
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 ]; 670 ];
672 671
673 for (var i = 0; i < allIds.length; ++i) { 672 for (var i = 0; i < allIds.length; ++i) {
674 var curId = allIds[i]; 673 var curId = allIds[i];
675 expectEquals(nodeId == curId, NetInternalsTest.nodeIsVisible($(curId))); 674 expectEquals(nodeId == curId, NetInternalsTest.nodeIsVisible($(curId)));
676 } 675 }
677 }; 676 };
678 677
679 return NetInternalsTest; 678 return NetInternalsTest;
680 })(); 679 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698