OLD | NEW |
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 Loading... |
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 }); |
OLD | NEW |