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

Side by Side Diff: android_webview/tools/system_webview_shell/test/data/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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <body> 4 <body>
5 <script type="text/javascript"> 5 <script type="text/javascript">
6 description("Test Battery Status API callback in WebView"); 6 description("Test Battery Status API callback in WebView");
7 window.jsTestIsAsync = true; 7 window.jsTestIsAsync = true;
8 8
9 var battery; 9 var battery;
10 function batteryStatusSuccess(batteryManager) { 10 function batteryStatusSuccess(batteryManager) {
(...skipping 12 matching lines...) Expand all
23 23
24 function batteryStatusFailure() { 24 function batteryStatusFailure() {
25 testFailed("failed to successfully resolve the promise"); 25 testFailed("failed to successfully resolve the promise");
26 finishJSTest(); 26 finishJSTest();
27 } 27 }
28 28
29 navigator.getBattery().then(batteryStatusSuccess, batteryStatusFailure); 29 navigator.getBattery().then(batteryStatusSuccess, batteryStatusFailure);
30 </script> 30 </script>
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698