http2-context.sub.h2.any.js (409B)
1 // META: global=window,dedicatedworker,sharedworker,serviceworker 2 test(() => { 3 assert_true(self.isSecureContext); 4 }, "Use of .h2. file name flag implies secure context"); 5 6 test(() => { 7 assert_equals(location.protocol, "https:"); 8 }, "Use of .h2. file name flag implies HTTPS scheme"); 9 10 test(() => { 11 assert_equals(location.port, "{{ports[h2][0]}}"); 12 }, "Use of .h2. file name flag implies correct port");