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

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

Issue 432553003: Remove redundant mapping of net errors to strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to comments Created 6 years, 4 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 // Include test fixture. 5 // Include test fixture.
6 GEN_INCLUDE(['net_internals_test.js']); 6 GEN_INCLUDE(['net_internals_test.js']);
7 7
8 // Anonymous namespace 8 // Anonymous namespace
9 (function() { 9 (function() {
10 10
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 taskQueue.run(); 166 taskQueue.run();
167 }); 167 });
168 168
169 /** 169 /**
170 * Runs the test suite twice. Checks the exact error code of the first result, 170 * Runs the test suite twice. Checks the exact error code of the first result,
171 * the order of events that occur, and the number of rows in the HTML table. 171 * the order of events that occur, and the number of rows in the HTML table.
172 * Does not use the TestServer. 172 * Does not use the TestServer.
173 */ 173 */
174 TEST_F('NetInternalsTest', 'netInternalsTestViewFailTwice', function() { 174 TEST_F('NetInternalsTest', 'netInternalsTestViewFailTwice', function() {
175 var taskQueue = new NetInternalsTest.TaskQueue(true); 175 var taskQueue = new NetInternalsTest.TaskQueue(true);
176 taskQueue.addTask(new RunTestSuiteTask(NetError.UNSAFE_PORT, 176 taskQueue.addTask(new RunTestSuiteTask(NetError.ERR_UNSAFE_PORT,
177 'http://127.0.0.1:7/')); 177 'http://127.0.0.1:7/'));
178 taskQueue.addTask(new RunTestSuiteTask(NetError.UNSAFE_PORT, 178 taskQueue.addTask(new RunTestSuiteTask(NetError.ERR_UNSAFE_PORT,
179 'http://127.0.0.1:7/')); 179 'http://127.0.0.1:7/'));
180 taskQueue.run(); 180 taskQueue.run();
181 }); 181 });
182 182
183 })(); // Anonymous namespace 183 })(); // Anonymous namespace
OLDNEW
« no previous file with comments | « chrome/test/data/webui/net_internals/dns_view.js ('k') | chromeos/network/onc/onc_certificate_importer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698