Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ getVideoStateProperty
Function
getVideoStateProperty
test/unit/test-url-replacements.js:812–814 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
810
const
win = getFakeWindow();
811
env.sandbox.stub(Services,
'videoManagerForDoc'
).returns({
812
getVideoStateProperty() {
813
return
Promise.resolve(
'1.5'
);
814
},
815
});
816
env.sandbox
817
.stub(win.document,
'getElementById'
)
Callers
nothing calls this directly
Calls
1
resolve
Method · 0.80
Tested by
no test coverage detected