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

Side by Side Diff: LayoutTests/fast/xmlhttprequest/xmlhttprequest-responseXML-html-document-responsetype-strict.html

Issue 48903019: Delete js-test-post.js. (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="../js/resources/js-test-pre.js"></script>
5 <script> 5 <script>
6 description('This tests the XMLHttpRequest responseXML loading an HTML d ocument in Strict Mode with responseType "document".'); 6 description('This tests the XMLHttpRequest responseXML loading an HTML d ocument in Strict Mode with responseType "document".');
7 7
8 window.jsTestIsAsync = true; 8 window.jsTestIsAsync = true;
9 var xhr = new XMLHttpRequest(), 9 var xhr = new XMLHttpRequest(),
10 url = window.location.href, 10 url = window.location.href,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 finishJSTest(); 42 finishJSTest();
43 }; 43 };
44 xhr.onerror = function() { 44 xhr.onerror = function() {
45 testFailed('The XHR request to an existing resource failed: "' + url + '"'); 45 testFailed('The XHR request to an existing resource failed: "' + url + '"');
46 finishJSTest(); 46 finishJSTest();
47 }; 47 };
48 xhr.open('GET', url); 48 xhr.open('GET', url);
49 xhr.responseType = 'document'; 49 xhr.responseType = 'document';
50 xhr.send(null); 50 xhr.send(null);
51 </script> 51 </script>
52 <script src="../js/resources/js-test-post.js"></script>
53 </head> 52 </head>
54 <body> 53 <body>
55 <div id="description"></div> 54 <div id="description"></div>
56 55
57 <!-- Leave these break tags malformed/open to test HTML parsing. 56 <!-- Leave these break tags malformed/open to test HTML parsing.
58 They should be siblings to div#description, and not nested within one a nother. 57 They should be siblings to div#description, and not nested within one a nother.
59 The XMLDocument parser would treat the second <br> as a child to the fi rst. --> 58 The XMLDocument parser would treat the second <br> as a child to the fi rst. -->
60 <br><br> 59 <br><br>
61 60
62 <div id="console"></div> 61 <div id="console"></div>
63 62
64 <script> 63 <script>
65 // This code will manipulate the first BR node by adding an "id" to it. 64 // This code will manipulate the first BR node by adding an "id" to it.
66 // This same BR will be inspected after XHR loads the document to see 65 // This same BR will be inspected after XHR loads the document to see
67 // if this script executed or not. If it didn't execute, the first BR 66 // if this script executed or not. If it didn't execute, the first BR
68 // will not have an "id" specified and the test passes. 67 // will not have an "id" specified and the test passes.
69 var br = document.querySelector('div#description + br'); 68 var br = document.querySelector('div#description + br');
70 br.id = 'break-tag'; 69 br.id = 'break-tag';
71 </script> 70 </script>
72 </body> 71 </body>
73 </html> 72 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698