Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 126c23c

Browse files
committed
Test whether ‘as’ attribute of HTML ‘link’ element is supported
1 parent 31a833b commit 126c23c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/Helper/HeadLinkTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,4 +457,10 @@ public function testItempropAttributeIsSupported()
457457
$this->helper->prependAlternate(['itemprop' => 'url', 'href' => '/bar/baz', 'rel' => 'canonical']);
458458
$this->assertContains('itemprop="url"', $this->helper->toString());
459459
}
460+
461+
public function testAsAttributeIsSupported()
462+
{
463+
$this->helper->headLink(['as' => 'style', 'href' => '/foo/bar.css', 'rel' => 'preload']);
464+
$this->assertContains('as="style"', $this->helper->toString());
465+
}
460466
}

0 commit comments

Comments
 (0)