* Exposes Karma's config constant for use during tests. The regular test runner * uses `karma`, while the debugger uses `__karma__ `.
()
| 62 | * uses `karma`, while the debugger uses `__karma__ `. |
| 63 | */ |
| 64 | function exposeKarmaConfig() { |
| 65 | if (parent.karma && !parent.__karma__) { |
| 66 | parent.__karma__ = parent.karma; |
| 67 | } |
| 68 | window.ampTestRuntimeConfig = parent.__karma__ |
| 69 | ? parent.__karma__.config.amp |
| 70 | : {}; |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * Initializes the constructs with which all test cases are authored. |