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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-overridemimetype-mixed-case.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-test-resources/js-test-pre.js"></script> 4 <script src="/js-test-resources/js-test.js"></script>
5 <script> 5 <script>
6 description('This tests that XMLHttpRequest overrideMimeType() properly handles mixed case MIME strings.'); 6 description('This tests that XMLHttpRequest overrideMimeType() properly handles mixed case MIME strings.');
7 window.jsTestIsAsync = true; 7 window.jsTestIsAsync = true;
8 8
9 var xhr = new XMLHttpRequest(), 9 var xhr = new XMLHttpRequest(),
10 url = 'resources/load-icon.xhtml'; 10 url = 'resources/load-icon.xhtml';
11 xhr.onload = function() { 11 xhr.onload = function() {
12 shouldBeNonNull('xhr.responseXML'); 12 shouldBeNonNull('xhr.responseXML');
13 finishJSTest(); 13 finishJSTest();
14 }; 14 };
15 xhr.onerror = function() { 15 xhr.onerror = function() {
16 testFailed('The XHR request to an existing resource failed: "' + url + '"'); 16 testFailed('The XHR request to an existing resource failed: "' + url + '"');
17 finishJSTest(); 17 finishJSTest();
18 }; 18 };
19 xhr.open('GET', url); 19 xhr.open('GET', url);
20 xhr.overrideMimeType('Application/Xhtml+Xml'); 20 xhr.overrideMimeType('Application/Xhtml+Xml');
21 xhr.responseType = 'document'; 21 xhr.responseType = 'document';
22 xhr.send(null); 22 xhr.send(null);
23 </script> 23 </script>
24 </head> 24 </head>
25 <body> 25 <body>
26 <div id="description"></div> 26 <div id="description"></div>
27 <div id="console"></div> 27 <div id="console"></div>
28 </body> 28 </body>
29 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698