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