Revision f6b063abedc0f8bb2cbecbb076972e9f92ce77c1 authored by James Graham on 09 January 2014, 19:06:47 UTC, committed by James Graham on 09 January 2014, 19:08:04 UTC
1 parent 46c4a37
Raw File
WorkerGlobalScope_addEventListener.htm
<!DOCTYPE html>
<html>
<head>
<title> WorkerGlobalScope API: addEventListener() </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id=log></div>
<script>
    
    var DATA = "ping";
    var FileName = './support/EventListener.js';
    
    var t = async_test("Test Description: WorkerGlobalScope API: addEventListener().");
                  
    var worker = new Worker(FileName);

    worker.onmessage = t.step_func(function(evt)
    {
        assert_equals(evt.data, DATA);
        t.done();
    });
    
    worker.postMessage(DATA);
</script>
</body>
</html>
back to top