<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="/js-test-resources/js-test.js"></script> | |
</head> | |
<body> | |
<script> | |
description("Tests that Link's rel=preconnect works as expected over HTTP."); | |
jsTestIsAsync = true; | |
internals.setConsoleMessageListener(function() { | |
finishJSTest(); | |
}); | |
const testLink = document.createElement("link"); | |
testLink.rel = "preconnect"; | |
testLink.href = "http://localhost:8000"; | |
document.head.appendChild(testLink); | |
</script> | |
</body> | |
</html> |