Index: trunk/extensions/VisualEditor/tests/parser/parserTests.js |
— | — | @@ -305,13 +305,14 @@ |
306 | 306 | .innerHTML |
307 | 307 | // a few things we ignore for now.. |
308 | 308 | .replace(/\/wiki\/Main_Page/g, 'Main Page') |
| 309 | + // do not expect a toc for now |
| 310 | + .replace(/<table[^>]+?id="toc"[^>]*>.+?<\/table>/mg, '') |
| 311 | + // do not expect section editing for now |
| 312 | + .replace(/(<span class="editsection">\[.*?<\/span> *)?<span[^>]+class="mw-headline"[^>]*>(.*?)<\/span>/g, '$2') |
| 313 | + // general class and titles, typically on links |
309 | 314 | .replace(/(title|class|rel)="[^"]+"/g, '') |
310 | 315 | // strip red link markup, we do not check if a page exists yet |
311 | 316 | .replace(/\/index.php\?title=|&action=edit&redlink=1/g, '') |
312 | | - // do not expect a toc for now |
313 | | - .replace(/<table id="toc>.*?<\/table>/g, '') |
314 | | - // do not expect section editing for now |
315 | | - .replace(/<h[1-6]> <span>[.*?<\/span><span.*?]<\/span>/g, '') |
316 | 317 | // the expected html has some extra space in tags, strip it |
317 | 318 | .replace(/<a +href/g, '<a href') |
318 | 319 | .replace(/" +>/g, '">'); |