* Dispatches a custom event only in testing environment. * * @param {string} name * @param {!Object=} opt_data Event data. * @final
(name, opt_data)
| 1409 | * @final |
| 1410 | */ |
| 1411 | dispatchCustomEventForTesting(name, opt_data) { |
| 1412 | if (!getMode().test) { |
| 1413 | return; |
| 1414 | } |
| 1415 | dom.dispatchCustomEvent(this, name, opt_data); |
| 1416 | } |
| 1417 | |
| 1418 | /** |
| 1419 | * Whether the element can pre-render. |
no test coverage detected