Index: LayoutTests/http/tests/webfont/same-origin-credentials.html |
diff --git a/LayoutTests/http/tests/webfont/same-origin-credentials.html b/LayoutTests/http/tests/webfont/same-origin-credentials.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3b754eac2434120d3383e5d1a4b8bac5c4a688ad |
--- /dev/null |
+++ b/LayoutTests/http/tests/webfont/same-origin-credentials.html |
@@ -0,0 +1,19 @@ |
+<!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.cgi?key=WebFontCredentials)'); |
+font.load().then(function() { |
+ debug('PASS'); |
+ finishJSTest(); |
+}).catch(function() { |
+ debug('FAIL'); |
+ finishJSTest(); |
+}); |
+</script> |
+ |