MCPcopy Create free account
hub / github.com/ampproject/amphtml / getRootNode

Function getRootNode

test/unit/utils/test-xhr-utils.js:80–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 beforeEach(() => {
79 ampDocSingle = {
80 getRootNode() {
81 return {documentElement: doc};
82 },
83 whenFirstVisible: env.sandbox.stub().returns(Promise.resolve()),
84 };
85 doc = document.createElement('html');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected