test_insecure_context.html (654B)
1 <!-- This is somewhat redundant with 2 dom/tests/mochitest/general/test_interfaces.js, but I think it's good to 3 have something here as well. --> 4 5 <!doctype html> 6 <html> 7 <head> 8 <meta charset="utf-8" /> 9 <script src="/tests/SimpleTest/SimpleTest.js"></script> 10 <link rel="stylesheet" href="/tests/SimpleTest/test.css" /> 11 </head> 12 <body> 13 <script> 14 ok( 15 SpecialPowers.getBoolPref("dom.webgpu.enabled"), 16 "Pref should be enabled." 17 ); 18 ok(!isSecureContext, "test should not run in a secure context"); 19 ok(navigator.gpu === undefined, "navigator.gpu === undefined"); 20 </script> 21 </body> 22 </html>