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

Unified Diff: chrome/test/data/webui/net_internals/dns_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/localized_error.cc ('k') | chrome/test/data/webui/net_internals/test_view.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/net_internals/dns_view.js
diff --git a/chrome/test/data/webui/net_internals/dns_view.js b/chrome/test/data/webui/net_internals/dns_view.js
index 63c338d6e016d4c00ea1bc76b6427eb029be95d5..63de6e765d1f8730d66aad2cba52b260e6271330 100644
--- a/chrome/test/data/webui/net_internals/dns_view.js
+++ b/chrome/test/data/webui/net_internals/dns_view.js
@@ -215,7 +215,7 @@ TEST_F('NetInternalsTest', 'netInternalsDnsViewSuccess', function() {
NetInternalsTest.switchToView('dns');
var taskQueue = new NetInternalsTest.TaskQueue(true);
taskQueue.addTask(new AddCacheEntryTask(
- 'somewhere.com', '1.2.3.4', 0, false));
+ 'somewhere.com', '1.2.3.4', 0, false));
taskQueue.addTask(new ClearCacheTask());
taskQueue.addTask(new WaitForEntryDestructionTask('somewhere.com'));
taskQueue.run(true);
@@ -228,7 +228,7 @@ TEST_F('NetInternalsTest', 'netInternalsDnsViewFail', function() {
NetInternalsTest.switchToView('dns');
var taskQueue = new NetInternalsTest.TaskQueue(true);
taskQueue.addTask(new AddCacheEntryTask(
- 'nowhere.com', '', NetError.NAME_NOT_RESOLVED, false));
+ 'nowhere.com', '', NetError.ERR_NAME_NOT_RESOLVED, false));
taskQueue.addTask(new ClearCacheTask());
taskQueue.addTask(new WaitForEntryDestructionTask('nowhere.com'));
taskQueue.run(true);
@@ -241,7 +241,7 @@ TEST_F('NetInternalsTest', 'netInternalsDnsViewExpired', function() {
NetInternalsTest.switchToView('dns');
var taskQueue = new NetInternalsTest.TaskQueue(true);
taskQueue.addTask(new AddCacheEntryTask(
- 'somewhere.com', '1.2.3.4', 0, true));
+ 'somewhere.com', '1.2.3.4', 0, true));
taskQueue.addTask(new ClearCacheTask());
taskQueue.addTask(new WaitForEntryDestructionTask('somewhere.com'));
taskQueue.run(true);
@@ -255,9 +255,9 @@ TEST_F('NetInternalsTest', 'netInternalsDnsViewAddTwoTwice', function() {
var taskQueue = new NetInternalsTest.TaskQueue(true);
for (var i = 0; i < 2; ++i) {
taskQueue.addTask(new AddCacheEntryTask(
- 'somewhere.com', '1.2.3.4', 0, false));
+ 'somewhere.com', '1.2.3.4', 0, false));
taskQueue.addTask(new AddCacheEntryTask(
- 'nowhere.com', '', NetError.NAME_NOT_RESOLVED, true));
+ 'nowhere.com', '', NetError.ERR_NAME_NOT_RESOLVED, true));
taskQueue.addTask(new ClearCacheTask());
taskQueue.addTask(new WaitForEntryDestructionTask('somewhere.com'));
taskQueue.addTask(new WaitForEntryDestructionTask('nowhere.com'));
@@ -275,7 +275,7 @@ TEST_F('NetInternalsTest', 'netInternalsDnsViewIncognitoClears', function() {
var taskQueue = new NetInternalsTest.TaskQueue(true);
taskQueue.addTask(new NetInternalsTest.CreateIncognitoBrowserTask());
taskQueue.addTask(new AddCacheEntryTask(
- 'somewhere.com', '1.2.3.4', 0, true));
+ 'somewhere.com', '1.2.3.4', 0, true));
taskQueue.addTask(NetInternalsTest.getCloseIncognitoBrowserTask());
taskQueue.addTask(new WaitForEntryDestructionTask('somewhere.com'));
taskQueue.run(true);
« no previous file with comments | « chrome/common/localized_error.cc ('k') | chrome/test/data/webui/net_internals/test_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698