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

Unified Diff: chrome/browser/ui/webui/options/chromeos/power_overlay_browsertest.js

Issue 1265853002: Fix closure compile through a series of stupid hacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: match enums Created 5 years, 5 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/browser/ui/webui/options/chromeos/power_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/power_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698