blob: e9924da5417ec896170046547a63fc3927054aa8 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/js-test-pre.js"></script>
<script src="resources/worker-create-common.js"></script>
<script>
var jsTestIsAsync = true;
description('Tests that self.toString() works in workers');
var worker = createWorker();
worker.postMessage("eval self.toString()");
worker.postMessage("eval 'self: ' + self");
worker.postMessage("eval DONE");
worker.onmessage = function(evt) {
if (!/DONE/.test(evt.data))
debug(evt.data.replace(new RegExp("/.*LayoutTests"), "<...>"));
else
finishJSTest();
};
</script>
<script src="../../resources/js-test-post.js"></script>