https://github.com/web-platform-tests/wpt
Raw File
Tip revision: aedcac217946872aa218bfb3b450a88aaf576493 authored by James Graham on 31 March 2014, 15:15:54 UTC
fixup! Update resources directory
Tip revision: aedcac2
WorkerGlobalScope_ErrorEvent_colno.htm
<!DOCTYPE html>
<html>
<head>
<title> WorkerGlobalScope onerror event handler argument: col </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id=log></div>
<script>
    
    var ErrorMessage = "Error Message";
    var FileName = './support/ErrorEvent.js';
    var description = "WorkerGlobalScope onerror event handler 4th argument: col";
    
    var t = async_test("Test Description: " + description);
                  
    var worker = new Worker(FileName);

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