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

Unified Diff: android_webview/tools/WebViewShell/test/blink-apis/battery-status/battery-callback.html

Issue 1785283005: [WebView] Reorganize all of the WebView Shell apks into their own dir. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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>

Powered by Google App Engine
This is Rietveld 408576698