| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 GEN('#include "chrome/browser/ui/webui/downloads_ui_browsertest.h"'); | 5 GEN('#include "chrome/browser/ui/webui/downloads_ui_browsertest.h"'); |
| 6 | 6 |
| 7 /** @const */ var TOTAL_RESULT_COUNT = 25; | 7 /** @const */ var TOTAL_RESULT_COUNT = 25; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Test C++ fixture for downloads WebUI testing. | 10 * Test C++ fixture for downloads WebUI testing. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 browsePreload: 'chrome://downloads/', | 29 browsePreload: 'chrome://downloads/', |
| 30 | 30 |
| 31 /** @override */ | 31 /** @override */ |
| 32 typedefCppFixture: 'DownloadsUIBrowserTest', | 32 typedefCppFixture: 'DownloadsUIBrowserTest', |
| 33 | 33 |
| 34 /** @override */ | 34 /** @override */ |
| 35 testGenPreamble: function() { | 35 testGenPreamble: function() { |
| 36 GEN(' SetDeleteAllowed(true);'); | 36 GEN(' SetDeleteAllowed(true);'); |
| 37 }, | 37 }, |
| 38 | 38 |
| 39 /** @override */ |
| 40 runAccessibilityChecks: true, |
| 41 |
| 42 /** @override */ |
| 43 accessibilityIssuesAreErrors: true, |
| 44 |
| 39 /** | 45 /** |
| 40 * Sends TOTAL_RESULT_COUNT fake downloads to the page. This can't be called | 46 * Sends TOTAL_RESULT_COUNT fake downloads to the page. This can't be called |
| 41 * in the preLoad, because it requires the global Download object to have | 47 * in the preLoad, because it requires the global Download object to have |
| 42 * been created by the page. | 48 * been created by the page. |
| 43 * @override | 49 * @override |
| 44 */ | 50 */ |
| 45 setUp: function() { | 51 setUp: function() { |
| 46 // The entries will begin at 1:00 AM on Sept 2, 2008, and will be spaced | 52 // The entries will begin at 1:00 AM on Sept 2, 2008, and will be spaced |
| 47 // two minutes apart. | 53 // two minutes apart. |
| 48 var timestamp = new Date(2008, 9, 2, 1, 0).getTime(); | 54 var timestamp = new Date(2008, 9, 2, 1, 0).getTime(); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 /** @override */ | 188 /** @override */ |
| 183 typedefCppFixture: 'DownloadsWebUIForSupervisedUsersTest', | 189 typedefCppFixture: 'DownloadsWebUIForSupervisedUsersTest', |
| 184 }; | 190 }; |
| 185 | 191 |
| 186 // Test UI for supervised users, removing entries should be disabled | 192 // Test UI for supervised users, removing entries should be disabled |
| 187 // and removal controls should be hidden. | 193 // and removal controls should be hidden. |
| 188 TEST_F('DownloadsWebUIForSupervisedUsersTest', 'SupervisedUsers', function() { | 194 TEST_F('DownloadsWebUIForSupervisedUsersTest', 'SupervisedUsers', function() { |
| 189 this.testHelper(false, true); | 195 this.testHelper(false, true); |
| 190 testDone(); | 196 testDone(); |
| 191 }); | 197 }); |
| OLD | NEW |