New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 717379 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocked on:
issue 717377



Sign in to add a comment

Create end-to-end browsertest for battery feature

Project Member Reported by leon....@intel.com, May 2 2017

Issue description

Verify BatteryMonitor interface registration/exposition under the real browser environment.

See  issue 717377  for context.
 
Project Member

Comment 1 by bugdroid1@chromium.org, May 20 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/da7e1a15a2d765da4d26aa6e7855ced0ccecfb24

commit da7e1a15a2d765da4d26aa6e7855ced0ccecfb24
Author: leon.han <leon.han@intel.com>
Date: Sat May 20 12:40:55 2017

[DeviceService] Create end-to-end browsertest for BatteryMonitor

This CL is to confirm that in a real browser environment javascript
battery APIs(navigator.getBattery and its event listener) CAN eventually
succeed in connecting to Device Service to receive battery status change
notifications correctly.

BUG= 717379 
TEST=content_browsertests

Review-Url: https://codereview.chromium.org/2882633002
Cr-Commit-Position: refs/heads/master@{#473432}

[add] https://crrev.com/da7e1a15a2d765da4d26aa6e7855ced0ccecfb24/content/browser/battery_monitor_browsertest.cc
[modify] https://crrev.com/da7e1a15a2d765da4d26aa6e7855ced0ccecfb24/content/test/BUILD.gn
[add] https://crrev.com/da7e1a15a2d765da4d26aa6e7855ced0ccecfb24/content/test/data/battery_monitor/battery_status_event_listener_test.html
[add] https://crrev.com/da7e1a15a2d765da4d26aa6e7855ced0ccecfb24/content/test/data/battery_monitor/battery_status_manual_test.html
[add] https://crrev.com/da7e1a15a2d765da4d26aa6e7855ced0ccecfb24/content/test/data/battery_monitor/battery_status_promise_resolution_test.html

Comment 2 by leon....@intel.com, May 20 2017

Status: Fixed (was: Assigned)
Components: Internals>Services>Device

Sign in to add a comment