}
$this->runDisabled = isset( $options['run-disabled'] );
+ $this->runParsoid = isset( $options['run-parsoid'] );
$this->hooks = array();
$this->functionHooks = array();
# language=XXX set content language to XXX for this test
# variant=XXX set the variant of language for this test (eg zh-tw)
# disabled do not run test
+# parsoid parsoid-only test (not run by PHP parser)
+# php php-only test (not run by the parsoid parser)
# showtitle make the first line the title
# comment run through Linker::formatComment() instead of main parser
# local format section links in edit comment text as local links
!! test
Definition Lists: Nesting: Multi-level (Parsoid only)
!! options
-disabled
+parsoid
!! input
;t1 :d1
;;t2 ::d2
!! test
Definition Lists: Nesting: Test 2 (Parsoid only)
!! options
-disabled
+parsoid
!! input
;t1
::d2
!! test
Definition Lists: Nesting: Test 3 (Parsoid only)
!! options
-disabled
+parsoid
!! input
:;t1
::::d2
List embedded in a non-block tag
(Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
!! options
-disabled
+parsoid
!!input
<small>
* foo
Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
(Parsoid-centric)
!! options
-disabled
+parsoid
!!input
{|
|{{echo|foo</table>}}
Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
(Parsoid-centric)
!! options
-disabled
+parsoid
!!input
<table>
<tr>
!! test
Parsoid-only: HTML tag with broken attribute value quoting
!! options
-disabled
+parsoid
!! input
<span title="Hello world>Foo</span>
!! result
!! test
Parsoid-only: Table with broken attribute value quoting on consecutive lines
!! options
-disabled
+parsoid
!! input
{|
| title="Hello world|Foo
* @ingroup Testing
*/
-$otions = array( 'quick', 'color', 'quiet', 'help', 'show-output', 'record', 'run-disabled' );
+$otions = array( 'quick', 'color', 'quiet', 'help', 'show-output', 'record', 'run-disabled', 'run-parsoid' );
$optionsWithArgs = array( 'regex', 'filter', 'seed', 'setversion' );
require_once( __DIR__ . '/../maintenance/commandLine.inc' );
--seed <n> Start the fuzz test from the specified seed
--help Show this help message
--run-disabled run disabled tests
+ --run-parsoid run parsoid tests (normally disabled)
ENDS;
exit( 0 );
public $keepUploads = false;
public $runDisabled = false;
+ public $runParsoid = false;
public $regex = '';
public $showProgress = true;
public $savedInitialGlobals = array();
}
if ( ( ( preg_match( '/\\bdisabled\\b/i', $this->sectionData['options'] ) && !$this->parserTest->runDisabled )
+ || ( preg_match( '/\\bparsoid\\b/i', $this->sectionData['options'] ) && !$this->parserTest->runParsoid )
|| !preg_match( "/" . $this->parserTest->regex . "/i", $this->sectionData['test'] ) )
) {
# disabled test