<!DOCTYPE html>
<script src="/js-test-resources/js-test.js"></script>
<script>
description('Tests that credentials are sent for same origin webfont requests');
window.jsTestIsAsync = true;
document.cookie = 'key=WebFontCredentials';
var font = new FontFace('test', 'url(resources/cookie-match.php?key=WebFontCredentials)');
font.load().then(function() {
debug('PASS');
finishJSTest();
}).catch(function() {
debug('FAIL');
finishJSTest();
});
</script>