https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 5977168f5485cbb193415ffd1b893d824d097186 authored by Luke Bjerring on 23 May 2018, 13:38:10 UTC
Fix pointerlock with add_dependency_idls
Tip revision: 5977168
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