Loading core/modules/system/system.module +0 −4 Original line number Diff line number Diff line Loading @@ -869,10 +869,6 @@ function system_preprocess_block(&$variables) { ]; } break; case 'system_powered_by_block': $variables['attributes']['role'] = 'complementary'; break; } } Loading core/profiles/standard/tests/src/Functional/StandardTest.php +1 −9 Original line number Diff line number Diff line Loading @@ -61,8 +61,7 @@ public function testStandard() { $this->drupalGet(''); $this->assertText('Main navigation'); // Verify we have role = aria on system_powered_by and help_block // blocks. // Verify we have role = complementary on help_block blocks. $this->drupalGet('admin/structure/block'); $elements = $this->xpath('//div[@role=:role and @id=:id]', [ ':role' => 'complementary', Loading @@ -71,13 +70,6 @@ public function testStandard() { $this->assertCount(1, $elements, 'Found complementary role on help block.'); $this->drupalGet(''); $elements = $this->xpath('//div[@role=:role and @id=:id]', [ ':role' => 'complementary', ':id' => 'block-bartik-powered', ]); $this->assertCount(1, $elements, 'Found complementary role on powered by block.'); // Verify anonymous user can see the block. $this->drupalLogout(); $this->assertText('Main navigation'); Loading Loading
core/modules/system/system.module +0 −4 Original line number Diff line number Diff line Loading @@ -869,10 +869,6 @@ function system_preprocess_block(&$variables) { ]; } break; case 'system_powered_by_block': $variables['attributes']['role'] = 'complementary'; break; } } Loading
core/profiles/standard/tests/src/Functional/StandardTest.php +1 −9 Original line number Diff line number Diff line Loading @@ -61,8 +61,7 @@ public function testStandard() { $this->drupalGet(''); $this->assertText('Main navigation'); // Verify we have role = aria on system_powered_by and help_block // blocks. // Verify we have role = complementary on help_block blocks. $this->drupalGet('admin/structure/block'); $elements = $this->xpath('//div[@role=:role and @id=:id]', [ ':role' => 'complementary', Loading @@ -71,13 +70,6 @@ public function testStandard() { $this->assertCount(1, $elements, 'Found complementary role on help block.'); $this->drupalGet(''); $elements = $this->xpath('//div[@role=:role and @id=:id]', [ ':role' => 'complementary', ':id' => 'block-bartik-powered', ]); $this->assertCount(1, $elements, 'Found complementary role on powered by block.'); // Verify anonymous user can see the block. $this->drupalLogout(); $this->assertText('Main navigation'); Loading