summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/XMLHttpRequest/resources/workerxhr-simple.js
blob: f6bcec0befa6e98efa57c57babda722e7da9606c (plain)
1
2
3
4
5
6
7
8
9
10

var xhr=new XMLHttpRequest()
xhr.onreadystatechange = function(){
	if(xhr.readyState == 4){
		var status = xhr.responseText === 'bottom\n' ? 'PASSED' : 'FAILED'
		self.postMessage(status)
	}
}
xhr.open('GET', 'folder.txt', true)
xhr.send()