mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 01:17:34 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Battery Test: navigator.getBattery() always return same battery promise</title>
|
||||
<link rel="author" title="YuichiNukiyama" href="https://github.com/YuichiNukiyama">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
promise_test(function () {
|
||||
return navigator.getBattery().then(function (result) {
|
||||
assert_class_string(result, 'BatteryManager',
|
||||
'getBattery should return BatteryManager Object.');
|
||||
});
|
||||
}, 'navigator.getBattery() shall return BatteryManager as a promise');
|
||||
|
||||
test(function () {
|
||||
assert_equals(navigator.getBattery(), navigator.getBattery());
|
||||
}, 'navigator.getBattery() shall always return the same promise');
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue