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
WorkerNavigator_onLine.htm
<!DOCTYPE html>
<html>
<head>
<title> WorkerNavigator.onLine </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id=log></div>
<script>
    
    var FileName = "./support/WorkerNavigator.js";
    var description = "WorkerNavigator implements NavigatorOnLine.";
    
    var t = async_test("Test Description: " + description);
                  
    var worker = new Worker(FileName);

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