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

+2-2
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

+2-2
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)