From 6f1871d3d957e308226522c902a63833f533db46 Mon Sep 17 00:00:00 2001 From: Matt Farina Date: Thu, 2 May 2013 11:43:27 -0500 Subject: Moved the traverser block checking code to use the mask on the elements class. --- test/HTML5/Serializer/TraverserTest.php | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'test/HTML5/Serializer') diff --git a/test/HTML5/Serializer/TraverserTest.php b/test/HTML5/Serializer/TraverserTest.php index 56fa4e1..7162c6e 100644 --- a/test/HTML5/Serializer/TraverserTest.php +++ b/test/HTML5/Serializer/TraverserTest.php @@ -23,25 +23,4 @@ class TraverserTest extends \HTML5\Tests\TestCase { $method->setAccessible(true); return $method; } - - public function testIsBlock() { - $blocks = array('html', 'body', 'head', 'p', 'div', 'h1', 'h2', 'h3', 'h4', - 'h5', 'h6', 'title', 'script', 'link', 'meta', 'section', 'article', - 'table', 'tbody', 'tr', 'th', 'td', - //'form', - ); - - // Mocking the required input because there is no checking. - $t = new Traverser('', ''); - $method = $this->getProtectedMethod('isBlock'); - - foreach ($blocks as $block) { - $this->assertTrue($method->invoke($t, $block), 'Block test failed on: ' . $block); - } - - $nonblocks = array('span', 'a', 'img'); - foreach ($nonblocks as $tag) { - $this->assertFalse($method->invoke($t, $tag), 'Block test failed on: ' . $tag); - } - } } \ No newline at end of file -- cgit v1.2.3