Revision 1d8cf99335f45dadb6d8e42d782d51a823045176 authored by Chris Rebert on 12 April 2016, 07:20:12 UTC, committed by Chris Rebert on 12 April 2016, 07:28:17 UTC
* Add `readonly` attribute test
* Test temporal <input>s with range limitations
* Test that <input type="range"> never matches
* Test that <input> types which cannot have range limitations and/or are barred from constraint validation never match
1 parent 8a4c5a9
Raw File
Channel_postMessage_event_properties.htm
<!DOCTYPE html>
<html>
<head>
<title> postMessage(): MessageEvent properties </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id=log></div>
<script>

    var TargetPort = null;
    var description = "The postMessage() method - Create an event that uses the MessageEvent interface, "
                    + "with the name message, which does not bubble and is not cancelable.";

    var t = async_test("Test Description: " + description);

    var channel = new MessageChannel();

    TargetPort = channel.port2;
    TargetPort.start();
    TargetPort.addEventListener("message", t.step_func(TestMessageEvent), true);

    channel.port1.postMessage("ping");

    function TestMessageEvent(evt)
    {
        ExpectedResult = [true, "message", false, false];
        ActualResult = [(evt instanceof MessageEvent), evt.type, evt.bubbles, evt.cancelable];

        assert_array_equals(ActualResult, ExpectedResult);
        t.done();
    }
</script>
</body>
</html>
back to top