MCPcopy Index your code
hub / github.com/nodejs/node / showNodes

Function showNodes

test/fixtures/wpt/encoding/resources/decode-common.js:9–40  ·  view source on GitHub ↗
(decoder)

Source from the content-addressed store, hash-verified

7}
8
9function showNodes(decoder) {
10 var iframe = iframeRef(document.getElementById("scrwin"));
11 nodes = iframe.querySelectorAll("span");
12
13 for (var i = 0; i < nodes.length; i++) {
14 var test = subsetTest(async_test,
15 "U+" +
16 nodes[i].dataset.cp +
17 " " +
18 String.fromCodePoint(parseInt(nodes[i].dataset.cp, 16)) +
19 " " +
20 decoder(nodes[i].dataset.bytes) +
21 " " +
22 nodes[i].dataset.bytes
23 );
24 if (test) {
25 tests[i] = test;
26 }
27 }
28
29 for (var i = 0; i < nodes.length; i++) {
30 if (tests[i]) {
31 tests[i].step(function() {
32 assert_equals(
33 nodes[i].textContent,
34 decoder(nodes[i].dataset.bytes)
35 );
36 });
37 tests[i].done();
38 }
39 }
40}

Callers

nothing calls this directly

Calls 6

iframeRefFunction · 0.85
subsetTestFunction · 0.85
decoderFunction · 0.85
assert_equalsFunction · 0.50
querySelectorAllMethod · 0.45
doneMethod · 0.45

Tested by

no test coverage detected