Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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'); | |
| 5 | |
| 6 window.jsTestIsAsync = true; | |
| 7 | |
| 8 document.cookie = 'key=WebFontCredentials'; | |
| 9 | |
| 10 var font = new FontFace('test', 'url(resources/cookie-match.php?key=WebFontCrede ntials)'); | |
| 11 font.load().then(function() { | |
| 12 debug('PASS'); | |
| 13 finishJSTest(); | |
| 14 }).catch(function() { | |
| 15 debug('FAIL'); | |
| 16 finishJSTest(); | |
| 17 }); | |
| 18 </script> | |
| 19 | |
| OLD | NEW |