| Index: android_webview/tools/WebViewShell/test/blink-apis/battery-status/battery-callback.html
|
| diff --git a/android_webview/tools/WebViewShell/test/blink-apis/battery-status/battery-callback.html b/android_webview/tools/WebViewShell/test/blink-apis/battery-status/battery-callback.html
|
| deleted file mode 100644
|
| index fd9a2e17ac0637ec3df442aee41896c7853310a1..0000000000000000000000000000000000000000
|
| --- a/android_webview/tools/WebViewShell/test/blink-apis/battery-status/battery-callback.html
|
| +++ /dev/null
|
| @@ -1,32 +0,0 @@
|
| -<!DOCTYPE html>
|
| -<html>
|
| - <script src="../../resources/js-test.js"></script>
|
| - <body>
|
| - <script type="text/javascript">
|
| - description("Test Battery Status API callback in WebView");
|
| - window.jsTestIsAsync = true;
|
| -
|
| - var battery;
|
| - function batteryStatusSuccess(batteryManager) {
|
| - debug('batteryStatusSuccess invoked');
|
| - battery = batteryManager;
|
| -
|
| - // Validate values
|
| - shouldBeGreaterThanOrEqual('battery.level', '0');
|
| - shouldBeLessThanOrEqual('battery.level', '1');
|
| - // Check that level has at most 2 significant digits
|
| - shouldBeTrue('battery.level.toPrecision(2) == battery.level');
|
| - shouldBeTrue('!battery.charging || battery.dischargingTime === Infinity');
|
| - shouldBeTrue('battery.charging || battery.chargingTime === Infinity');
|
| - finishJSTest();
|
| - }
|
| -
|
| - function batteryStatusFailure() {
|
| - testFailed("failed to successfully resolve the promise");
|
| - finishJSTest();
|
| - }
|
| -
|
| - navigator.getBattery().then(batteryStatusSuccess, batteryStatusFailure);
|
| - </script>
|
| - </body>
|
| -</html>
|
|
|