()
| 6 | } |
| 7 | |
| 8 | async function loadBasicPage() { |
| 9 | await loadTestPage({ |
| 10 | '/': multiline( |
| 11 | '<!DOCTYPE html>', |
| 12 | '<html>', |
| 13 | '<head>', |
| 14 | ' <style>', |
| 15 | ' h1 { color: white; }', |
| 16 | ' </style>', |
| 17 | '</head>', |
| 18 | '<body>', |
| 19 | ' <h1>White title - should stay</h1>', |
| 20 | ' <h2>White subtitle - should change</h2>', |
| 21 | ' <iframe id="red" src="/red.html"></iframe>', |
| 22 | ' <iframe id="blue" src="/blue.html"></iframe>', |
| 23 | '</body>', |
| 24 | '</html>', |
| 25 | ), |
| 26 | '/red.html': multiline( |
| 27 | '<!DOCTYPE html>', |
| 28 | '<html>', |
| 29 | '<head>', |
| 30 | ' <style>', |
| 31 | ' h1 { color: red; }', |
| 32 | ' h2 { color: white; }', |
| 33 | ' </style>', |
| 34 | '</head>', |
| 35 | '<body>', |
| 36 | ' <h1>Red title - should change</h1>', |
| 37 | ' <h2>White subtitle - should stay</h2>', |
| 38 | '</body>', |
| 39 | '</html>', |
| 40 | ), |
| 41 | '/blue.html': multiline( |
| 42 | '<!DOCTYPE html>', |
| 43 | '<html>', |
| 44 | '<head>', |
| 45 | ' <style>', |
| 46 | ' h1 { color: blue; }', |
| 47 | ' h2 { color: white; }', |
| 48 | ' </style>', |
| 49 | '</head>', |
| 50 | '<body>', |
| 51 | ' <h1>Blue title - should change</h1>', |
| 52 | ' <h2>White subtitle - should stay</h2>', |
| 53 | '</body>', |
| 54 | '</html>', |
| 55 | ), |
| 56 | }); |
| 57 | } |
| 58 | |
| 59 | describe('Different paths in URL patterns', () => { |
| 60 | it('Different paths upon initial load', async () => { |
no test coverage detected
searching dependent graphs…