Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: LayoutTests/fast/xmlhttprequest/xmlhttprequest-sync-disabled.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../js/resources/js-test-pre.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <script> 5 <script>
6 if ('internals' in window) { 6 if ('internals' in window) {
7 window.internals.settings.setSyncXHRInDocumentsEnabled(false); 7 window.internals.settings.setSyncXHRInDocumentsEnabled(false);
8 } else { 8 } else {
9 document.write('This test depends on the syncXHRInDocumentsEnabled s etting being false, so run in DumpRenderTree or manually enable it'); 9 document.write('This test depends on the syncXHRInDocumentsEnabled s etting being false, so run in DumpRenderTree or manually enable it');
10 } 10 }
11 11
12 description('This tests that synchronous XMLHttpRequests fail when they are disabled for documents.'); 12 description('This tests that synchronous XMLHttpRequests fail when they are disabled for documents.');
13 var xhr = new XMLHttpRequest(); 13 var xhr = new XMLHttpRequest();
14 shouldThrow('xhr.open("GET", "http://mydomain/", false)'); 14 shouldThrow('xhr.open("GET", "http://mydomain/", false)');
15 </script> 15 </script>
16 </head> 16 </head>
17 <body> 17 <body>
18 <div id="description"></div> 18 <div id="description"></div>
19 <div id="console"></div> 19 <div id="console"></div>
20 </body> 20 </body>
21 </html> 21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698