OLD | NEW |
(Empty) | |
| 1 <!-- |
| 2 var xhr = new XMLHttpRequest(); |
| 3 var log = ''; |
| 4 xhr.open('GET', '001-1.xml', false); |
| 5 xhr.send(); |
| 6 if (xhr.responseXML != null) |
| 7 log += 'responseXML was not null. '; |
| 8 if (xhr.responseText != '<x>foo</x>') |
| 9 log += 'responseText was ' + this.responseText + ', expected <x>foo</x>. '; |
| 10 postMessage(log); |
| 11 |
| 12 /* |
| 13 --> |
| 14 <!doctype html> |
| 15 <title>sync XMLHttpRequest in dedicated worker</title> |
| 16 <script src="/resources/testharness.js"></script> |
| 17 <script src="/resources/testharnessreport.js"></script> |
| 18 <div id=log></div> |
| 19 <script> |
| 20 var t = async_test(); |
| 21 function runtest() { |
| 22 var worker = new Worker('#'); |
| 23 worker.onmessage = this.step_func(function(e) { |
| 24 assert_equals(e.data, ''); |
| 25 this.done(); |
| 26 }); |
| 27 } |
| 28 </script> |
| 29 <iframe src=001-1.xml onload="t.step(runtest);"></iframe> |
| 30 <!-- |
| 31 */ |
| 32 //--> |
OLD | NEW |