Revision 8ba8d81fc0a97e9f5332a23d532ee9b40cf3104b authored by moz-wptsync-bot on 11 January 2018, 16:11:49 UTC, committed by moz-wptsync-bot on 11 January 2018, 16:11:49 UTC
bugzilla-url: https://bugzilla-dev.allizom.org/show_bug.cgi?id=1420672 gecko-commit: 976d54360e53438f9f7029b636b4585ee974f891 gecko-integration-branch: central gecko-reviewers: bkelly
1 parent b5b0297
device-memory.https.any.js
test(function() {
assert_equals(typeof navigator.deviceMemory, "number",
"navigator.deviceMemory returns a number");
assert_true(navigator.deviceMemory >= 0,
"navigator.deviceMemory returns a positive value");
assert_true([0.25, 0.5, 1, 2, 4, 8].includes(navigator.deviceMemory),
"navigator.deviceMemory returns a power of 2 between 0.25 and 8");
}, "navigator.deviceMemory is a positive number, a power of 2, between 0.25 and 8");
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...