File: README.md

package info (click to toggle)
mediawiki 1%3A1.43.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 420,592 kB
  • sloc: php: 1,064,309; javascript: 664,315; sql: 9,737; python: 5,743; xml: 3,489; sh: 1,131; makefile: 64
file content (16 lines) | stat: -rw-r--r-- 1,016 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
This directory contains data files for testing XML dumps.
Each file contains an XML structure, full or partial.
These data files are intended to be used with DumpAsserter::assertDOM().

The data files contain XML with variable placeholders using a mustache-like
syntax, e.g. {{site_name}}. The variable placeholder syntax is implemented by
DumpAsserter::resolveVars(), variable values can be defined using DumpAsserter::setVarMapping().
Any differences in whitespace and any comments in the XML files are ignored.

Data files may make use of the <test:data> and <test:end/> tags: <test:data> acts as a
wrapper for a sequence of elements and is ignored during comparison. <test:end/> terminates
the comparison, and causes all subsequent content of the file to be ignored.
The behavior of the <test:data> and <test:end/> tags is controlled by DumpAsserter::assertDOM().

The names of these files, the data they contain, as well as the names of the
variables used, are defined by test cases, such as ImportExportTest.