You are here

public function DOMTreeBuilderTest::testNoScript in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/test/HTML5/Parser/DOMTreeBuilderTest.php \Masterminds\HTML5\Tests\Parser\DOMTreeBuilderTest::testNoScript()

File

vendor/masterminds/html5/test/HTML5/Parser/DOMTreeBuilderTest.php, line 491
Test the Tree Builder.

Class

DOMTreeBuilderTest
These tests are functional, not necessarily unit tests.

Namespace

Masterminds\HTML5\Tests\Parser

Code

public function testNoScript() {
  $html = '<!DOCTYPE html><html><head><noscript>No JS</noscript></head></html>';
  $doc = $this
    ->parse($html);
  $this
    ->assertEmpty($this->errors);
  $noscript = $doc
    ->getElementsByTagName('noscript')
    ->item(0);
  $this
    ->assertEquals('noscript', $noscript->tagName);
}