mixed-content.https.any.js (271B)
1 // META: global=window,worker 2 // META: script=constants.sub.js 3 4 test(() => { 5 assert_throws_dom('SecurityError', () => CreateInsecureWebSocket(), 6 'constructor should throw'); 7 }, 'constructing an insecure WebSocket in a secure context should throw');