r105190 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105189‎ | r105190 | r105191 >
Date:17:07, 5 December 2011
Author:gwicke
Status:deferred
Tags:
Comment:
Ignore missing redlink for now, we are concerned with the parser and not a
complete wiki at this stage.
Modified paths:
  • /trunk/extensions/VisualEditor/tests/parser/parserTests.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/tests/parser/parserTests.js
@@ -305,6 +305,8 @@
306306 // a few things we ignore for now..
307307 .replace(/\/wiki\/Main_Page/g, 'Main Page')
308308 .replace(/(title|class|rel)="[^"]+"/g, '')
 309+ // strip red link markup, we do not check if a page exists yet
 310+ .replace(/\/index.php\?title=|&action=edit&redlink=1/g, '')
309311 // the expected html has some extra space in tags, strip it
310312 .replace(/<a +href/g, '<a href')
311313 .replace(/" +>/g, '">');

Status & tagging log