@private
()
| 423 | |
| 424 | /** @private */ |
| 425 | assertLayout_() { |
| 426 | if ( |
| 427 | this.layout_ != Layout_Enum.NODISPLAY && |
| 428 | this.impl_ && |
| 429 | !this.impl_.isLayoutSupported(this.layout_) |
| 430 | ) { |
| 431 | userAssert( |
| 432 | this.getAttribute('layout'), |
| 433 | 'The element did not specify a layout attribute. ' + |
| 434 | 'Check https://amp.dev/documentation/guides-and-tutorials/' + |
| 435 | 'develop/style_and_layout/control_layout and the respective ' + |
| 436 | 'element documentation for details.' |
| 437 | ); |
| 438 | userAssert(false, `Layout not supported: ${this.layout_}`); |
| 439 | } |
| 440 | } |
| 441 | |
| 442 | /** |
| 443 | * Get the priority to build the element. |
no test coverage detected