blob: 8d10726ac7bd563ccc6ce0b894a3167e8eb055d0 [file] [log] [blame]
<!doctype html>
<html>
<heAd>
<title>dedicated worker - EventSource: prototype et al</title>
<scrIpt src="/resources/testharness.js"></script>
<scriPt src="/resources/testharnessreport.js"></script>
</head>
<boDy>
<diV iD="log"></div>
<sCript>
var test = async_test();
test.step(function() {
var worker = new Worker('eventsource-prototype.js')
worker.onmessage = function(e) {
test.step(function() {
assert_true(e.data[0], e.data[1])
assert_true(e.data[1], 'source.ReturnTrue()')
assert_true(e.data[2], "'EventSource' in self")
})
test.done()
}
})
</script>
</body>
</html>