Skip to content

Commit e130ac0

Browse files
author
Edward Z. Yang ext:(%22)
committed
Fix some test failures.
1 parent 1cbacc5 commit e130ac0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/HTML5/TestDataTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ class HTML5_TestDataTest extends UnitTestCase
77
function testSample() {
88
$data = new HTML5_TestData(dirname(__FILE__) . '/TestDataTest/sample.dat');
99
$this->assertIdentical($data->tests, array(
10-
array('data' => "Foo\n", 'des' => "Bar\n"),
11-
array('data' => "Foo\n")
10+
array('data' => "Foo", 'des' => "Bar"),
11+
array('data' => "Foo")
1212
));
1313
}
1414
function testStrDom() {

tests/HTML5/TokenizerPositionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ class HTML5_PositionTestableTokenizer extends HTML5_TestableTokenizer
77
public $outputLines = array();
88
public $outputCols = array();
99
private $characterTokens = array();
10-
protected function emitToken($token, $checkStream = true) {
11-
parent::emitToken($token, $checkStream);
10+
protected function emitToken($token, $checkStream = true, $dry = false) {
11+
parent::emitToken($token, $checkStream, $dry);
1212
// XXX: The tests should really include the parse errors, but I'm lazy.
1313
switch ($token['type']) {
1414
case self::PARSEERROR:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy