https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 21723c60a58b1be1c940a2d284bdcd54b34715cd authored by Jarryd on 13 December 2018, 18:38:01 UTC
Cookie Store: Test cross-origin frames + service workers.
Tip revision: 21723c6
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