Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / xmlhttprequest / xmlhttprequest-sync-disabled.html
blobbd8b6a427c33db492da6ba3d5d2d1155509911d4
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 <script>
6 if ('internals' in window) {
7 window.internals.settings.setSyncXHRInDocumentsEnabled(false);
8 } else {
9 document.write('This test depends on the syncXHRInDocumentsEnabled setting being false, so run in DumpRenderTree or manually enable it');
12 description('This tests that synchronous XMLHttpRequests fail when they are disabled for documents.');
13 var xhr = new XMLHttpRequest();
14 shouldThrow('xhr.open("GET", "http://mydomain/", false)');
15 </script>
16 </head>
17 <body>
18 <div id="description"></div>
19 <div id="console"></div>
20 </body>
21 </html>