test/integration/test-extensions-loading.js
// Checks if an amp element gets upgraded.
Checks if an amp element gets upgraded.
Checks if an amp element gets upgraded .
function checkElementUpgrade(element) {
  expect(element).to.have.class('i-amphtml-element');
  expect(element).to.have.class('i-amphtml-layout-responsive');
  expect(element).to.have.class('i-amphtml-layout-size-defined');
  expect(element).to.not.have.class('amp-notbuilt');
  expect(element).to.not.have.class('i-amphtml-notbuilt');
  expect(element).to.not.have.class('amp-unresolved');
  expect(element).to.not.have.class('i-amphtml-unresolved');
}
function checkElementUpgrade ( element ) { expect ( element ) . to . have . class ( 'i-amphtml-element' ) ; expect ( element ) . to . have . class ( 'i-amphtml-layout-responsive' ) ; expect ( element ) . to . have . class ( 'i-amphtml-layout-size-defined' ) ; expect ( element ) . to . not . have . class ( 'amp-notbuilt' ) ; expect ( element ) . to . not . have . class ( 'i-amphtml-notbuilt' ) ; expect ( element ) . to . not . have . class ( 'amp-unresolved' ) ; expect ( element ) . to . not . have . class ( 'i-amphtml-unresolved' ) ; }
Checks if an amp element gets upgraded.
Checks if an amp element gets upgraded .