MCPcopy
hub / github.com/ampproject/amphtml / checkElementUpgrade

Function checkElementUpgrade

test/integration/test-double-loading.js:5–13  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

3import {createFixtureIframe} from '#testing/iframe';
4
5function checkElementUpgrade(element) {
6 expect(element).to.have.class('i-amphtml-element');
7 expect(element).to.have.class('i-amphtml-layout-responsive');
8 expect(element).to.have.class('i-amphtml-layout-size-defined');
9 expect(element).to.not.have.class('amp-notbuilt');
10 expect(element).to.not.have.class('i-amphtml-notbuilt');
11 expect(element).to.not.have.class('amp-unresolved');
12 expect(element).to.not.have.class('i-amphtml-unresolved');
13}
14
15describes.sandboxed
16 .configure()

Callers 1

Calls 1

expectFunction · 0.85

Tested by

no test coverage detected