https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9e34bb15e5b4662e9d59ec01e9d0e228e49b44ee authored by Jake Archibald on 06 April 2018, 15:33:01 UTC
Testing range header is actually sent to the server
Tip revision: 9e34bb1
traversal-support.js
// |expected| should be an object indicating the expected type of node.
function assert_node(actual, expected)
{
    assert_true(actual instanceof expected.type,
                'Node type mismatch: actual = ' + actual.nodeType + ', expected = ' + expected.nodeType);
    if (typeof(expected.id) !== 'undefined')
        assert_equals(actual.id, expected.id);
    if (typeof(expected.nodeValue) !== 'undefined')
        assert_equals(actual.nodeValue, expected.nodeValue);
}
back to top