Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / webfont / same-origin-credentials.html
blob297cf9a60ab4860818bbc883e8848c9684b3bd5c
1 <!DOCTYPE html>
2 <script src="/js-test-resources/js-test.js"></script>
3 <script>
4 description('Tests that credentials are sent for same origin webfont requests');
6 window.jsTestIsAsync = true;
8 document.cookie = 'key=WebFontCredentials';
10 var font = new FontFace('test', 'url(resources/cookie-match.php?key=WebFontCredentials)');
11 font.load().then(function() {
12 debug('PASS');
13 finishJSTest();
14 }).catch(function() {
15 debug('FAIL');
16 finishJSTest();
17 });
18 </script>