4 <meta charset=
"utf-8" />
5 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
6 <link rel=
"stylesheet" href=
"/tests/SimpleTest/test.css" />
11 SpecialPowers
.getBoolPref("dom.webgpu.enabled"),
12 "Pref should be enabled."
14 const originalNavigatorGpu
= navigator
.gpu
;
16 const BAD_GPU_VAL
= "ohcrapthisisbad";
18 navigator
.gpu
!== BAD_GPU_VAL
,
19 "`navigator.gpu` should never equal `BAD_GPU_VAL` (before replacement attempt)"
21 navigator
.gpu
= BAD_GPU_VAL
;
23 navigator
.gpu
!== BAD_GPU_VAL
,
24 "`navigator.gpu` should never equal `BAD_GPU_VAL` (after replacement attempt)"
27 navigator
.gpu
=== originalNavigatorGpu
,
28 "`navigator.gpu` should equal originally observed value after attempted replacement"