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

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

Issue 7553009: Add some browser tests for net-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 * Tests the behavior of stripCookiesAndLoginInfo. 6 * Tests the behavior of stripCookiesAndLoginInfo.
7 */ 7 */
8 netInternalsTest.test('NetInternalsLogViewPainterStripInfo', function() { 8 netInternalsTest.test('NetInternalsLogViewPainterStripInfo', function() {
9 // Each entry in |expectations| is a list consisting of a header element 9 // Each entry in |expectations| is a list consisting of a header element
10 // before and after applying the filter. If the second entry is null, the 10 // before and after applying the filter. If the second entry is null, the
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // The entry should be duplicated, so the original still has the deleted 71 // The entry should be duplicated, so the original still has the deleted
72 // information. 72 // information.
73 expectNotEquals(stripped, entry); 73 expectNotEquals(stripped, entry);
74 if (expectation[1] == null) { 74 if (expectation[1] == null) {
75 expectEquals(stripped.params.headers[position], expectation[0]); 75 expectEquals(stripped.params.headers[position], expectation[0]);
76 } else { 76 } else {
77 expectEquals(stripped.params.headers[position], expectation[1]); 77 expectEquals(stripped.params.headers[position], expectation[1]);
78 } 78 }
79 } 79 }
80 } 80 }
81 netInternalsTest.testDone();
82 }); 81 });
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/net_internals_ui_browsertest.cc ('k') | chrome/test/data/webui/net_internals/net_internals_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698