| Index: chrome/browser/ui/webui/options/chromeos/power_overlay_browsertest.js
|
| diff --git a/chrome/browser/ui/webui/options/chromeos/power_overlay_browsertest.js b/chrome/browser/ui/webui/options/chromeos/power_overlay_browsertest.js
|
| index 5a07aa0f8366c572ff3dca50a61a497955122d66..58f232f64273a8c5fdbda76b18e4004acf72485d 100644
|
| --- a/chrome/browser/ui/webui/options/chromeos/power_overlay_browsertest.js
|
| +++ b/chrome/browser/ui/webui/options/chromeos/power_overlay_browsertest.js
|
| @@ -90,7 +90,7 @@ TEST_F('PowerOverlayWebUITest', 'testDedicatedCharger', function() {
|
| var fakeSources = [{
|
| id: 'source1',
|
| description: 'Left port',
|
| - type: loadTimeData.getInteger('powerSourceCharger'),
|
| + type: options.PowerStatusDeviceType.DEDICATED_CHARGER,
|
| }];
|
|
|
| this.setPowerSources(fakeSources, 'source1', false, false);
|
| @@ -112,7 +112,7 @@ TEST_F('PowerOverlayWebUITest', 'testSingleSource', function() {
|
| var fakeSources = [{
|
| id: 'source1',
|
| description: 'Left port',
|
| - type: loadTimeData.getInteger('powerSourceDualRole'),
|
| + type: options.PowerStatusDeviceType.DUAL_ROLE_USB,
|
| }];
|
|
|
| this.setPowerSources(fakeSources, '', false, false);
|
| @@ -133,19 +133,19 @@ TEST_F('PowerOverlayWebUITest', 'testMultipleSources', function() {
|
| var fakeSources = [{
|
| id: 'source1',
|
| description: 'Left port',
|
| - type: loadTimeData.getInteger('powerSourceDualRole'),
|
| + type: options.PowerStatusDeviceType.DUAL_ROLE_USB,
|
| }, {
|
| id: 'source2',
|
| description: 'Right port',
|
| - type: loadTimeData.getInteger('powerSourceDualRole'),
|
| + type: options.PowerStatusDeviceType.DUAL_ROLE_USB,
|
| }, {
|
| id: 'source3',
|
| description: 'Front port',
|
| - type: loadTimeData.getInteger('powerSourceDualRole'),
|
| + type: options.PowerStatusDeviceType.DUAL_ROLE_USB,
|
| }, {
|
| id: 'source4',
|
| description: 'Rear port',
|
| - type: loadTimeData.getInteger('powerSourceDualRole'),
|
| + type: options.PowerStatusDeviceType.DUAL_ROLE_USB,
|
| }];
|
|
|
| // Use a dual-role device.
|
|
|