Strip RDFa attributes in parserTests

We are adding some extra information in those, which should not make tests
fail.

Change-Id: I42cca596330252efeff5d51508f97ef1c566475b
This commit is contained in:
Gabriel Wicke 2012-05-17 17:03:44 +02:00
parent e2815b516c
commit 04fc74c76a

View file

@ -319,7 +319,7 @@ ParserTests.prototype.normalizeHTML = function (source) {
// known-ok differences.
ParserTests.prototype.normalizeOut = function ( out ) {
// TODO: Do not strip newlines in pre and nowiki blocks!
return out.replace(/[\r\n]| data-mw="[^">]*"/g, '')
return out.replace(/[\r\n]| (data-mw|typeof|resource|rel|prefix|about|rev|datatype|inlist|property|vocab|content)="[^">]*"/g, '')
.replace(/<!--.*?-->\n?/gm, '')
.replace(/<\/?meta[^>]*>/g, '');
};