- Timestamp:
- 02/27/2025 10:12:10 PM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/speculative-loading/wpGetSpeculationRules.php
r59837 r59881 140 140 $this->assertArrayHasKey( 'not', $rules['prefetch'][0]['where']['and'][3] ); 141 141 $this->assertArrayHasKey( 'selector_matches', $rules['prefetch'][0]['where']['and'][3]['not'] ); 142 $this->assertSame( '.no-prefetch ', $rules['prefetch'][0]['where']['and'][3]['not']['selector_matches'] );142 $this->assertSame( '.no-prefetch, .no-prefetch a', $rules['prefetch'][0]['where']['and'][3]['not']['selector_matches'] ); 143 143 } 144 144 … … 165 165 $this->assertArrayHasKey( 'not', $rules['prerender'][0]['where']['and'][3] ); 166 166 $this->assertArrayHasKey( 'selector_matches', $rules['prerender'][0]['where']['and'][3]['not'] ); 167 $this->assertSame( '.no-prerender ', $rules['prerender'][0]['where']['and'][3]['not']['selector_matches'] );167 $this->assertSame( '.no-prerender, .no-prerender a', $rules['prerender'][0]['where']['and'][3]['not']['selector_matches'] ); 168 168 $this->assertArrayHasKey( 'not', $rules['prerender'][0]['where']['and'][4] ); 169 169 $this->assertArrayHasKey( 'selector_matches', $rules['prerender'][0]['where']['and'][4]['not'] ); 170 $this->assertSame( '.no-prefetch ', $rules['prerender'][0]['where']['and'][4]['not']['selector_matches'] );170 $this->assertSame( '.no-prefetch, .no-prefetch a', $rules['prerender'][0]['where']['and'][4]['not']['selector_matches'] ); 171 171 } 172 172
Note: See TracChangeset
for help on using the changeset viewer.