Page MenuHomePhabricator
Paste P9290

(An Untitled Masterwork)
ActivePublic

Authored by Arlolra on Oct 9 2019, 9:37 PM.
Tags
None
Referenced Files
F30605867: raw.txt
Oct 9 2019, 9:37 PM
Subscribers
None
Parsoid API
formats
1) should accept application/x-www-form-urlencoded
✓ should accept application/json (141ms)
2) should accept multipart/form-data
3) should return a plaintext error
4) should return a json error
5) should return an html error
accepts
6) should not accept requests for older content versions (html)
7) should not accept requests for older content versions (pagebundle)
✓ should not accept requests for other profiles (html)
✓ should not accept requests for other profiles (pagebundle)
✓ should accept wildcards (html)
✓ should accept wildcards (pagebundle)
✓ should prefer higher quality (html)
✓ should prefer higher quality (pagebundle)
✓ should accept requests for the latest content version (html)
✓ should accept requests for the latest content version (pagebundle)
✓ should accept requests for content version 2.x (html)
✓ should accept requests for content version 2.x (pagebundle)
✓ should accept requests for older content version 2.x (html)
✓ should accept requests for older content version 2.x (pagebundle)
✓ should sanity check 2.x content (pagebundle) (71ms)
✓ should accept requests for content version 999.x (html) (69ms)
✓ should accept requests for content version 999.x (pagebundle) (69ms)
wt2lint
✓ should reject the given page format
✓ should lint the given wikitext
✓ should lint the given page
8) should redirect title to latest revision (lint)
wt2html
9) should redirect title to latest revision (html)
10) should redirect title to latest revision (pagebundle)
11) should redirect title to latest revision (wikitext)
12) should preserve querystring params while redirecting
✓ should get from a title and revision (html)
13) should get from a title and revision (html, pre-mcr)
14) should get from a title and revision (html, json content)
✓ should get from a title and revision (pagebundle)
15) should get from a title and revision (pagebundle, json content)
✓ should get from a title and revision (wikitext)
✓ should accept wikitext as a string for html
16) should accept json contentmodel as a string for html
✓ should accept wikitext as a string for pagebundle
17) should accept json contentmodel as a string for pagebundle
✓ should accept wikitext with headers
18) should require a title when no wikitext is provided (html)
19) should require a title when no wikitext is provided (pagebundle)
20) should accept an original title (html)
21) should accept an original title (pagebundle)
22) should accept an original title, other than main
✓ should not require a title when empty wikitext is provided (html)
✓ should not require a title when empty wikitext is provided (pagebundle)
✓ should not require a title when wikitext is provided
✓ should not require a rev id when wikitext and a title is provided
✓ should accept the wikitext source as original data
✓ should use the proper source text
✓ should accept the wikitext source as original without a title or revision
✓ should respect body parameter in wikitext->html (body_only)
✓ should respect body parameter in wikitext->pagebundle requests (body_only) (38ms)
✓ should not include captured offsets (52ms)
✓ should implement subst - simple (51ms)
✓ should implement subst - internal tranclusion (67ms)
✓ should not allow subst with pagebundle
✓ should return a request too large error (post wt)
✓ should return a request too large error (get page)
✓ should add redlinks for get (html) (39ms)
✓ should add redlinks for get (pagebundle) (45ms)
✓ should add redlinks for transform (html) (47ms)
✓ should add redlinks for transform (pagebundle) (48ms)
✓ should not perform unnecessary variant conversion for get of en page (html) (38ms)
23) should not perform unnecessary variant conversion for get of en page (pagebundle)
24) should not perform unnecessary variant conversion for get on page w/ magic word (html)
25) should not perform unnecessary variant conversion for get on page w/ magic word (pagebundle)
26) should not perform unrequested variant conversion for get w/ no accept-language header (html)
27) should not perform unrequested variant conversion for get w/ no accept-language header (pagebundle)
28) should not perform variant conversion for get w/ base variant specified (html)
29) should not perform variant conversion for get w/ base variant specified (pagebundle)
30) should not perform variant conversion for get w/ invalid variant specified (html)
31) should not perform variant conversion for get w/ invalid variant specified (pagebundle)
32) should perform variant conversion for get (html)
33) should perform variant conversion for get (pagebundle)
34) should perform variant conversion for transform given pagelanguage in HTTP header (html)
35) should perform variant conversion for transform given pagelanguage in HTTP header (pagebundle)
36) should perform variant conversion for transform given pagelanguage in JSON header (html)
37) should perform variant conversion for transform given pagelanguage in JSON header (pagebundle)
38) should perform variant conversion for transform given pagelanguage from oldid (html)
39) should perform variant conversion for transform given pagelanguage from oldid (pagebundle)
html2wt
✓ should require html when serializing
✓ should accept html as a string (39ms)
40) should accept html for json contentmodel as a string
✓ should accept html with headers (45ms)
✓ should allow a title in the url
✓ should allow a title in the original data
✓ should allow a revision id in the url (41ms)
✓ should allow a revision id in the original data (46ms)
✓ should accept original wikitext as src
✓ should accept original html for selser (default) (38ms)
✓ should accept original html for selser (1.1.1, meta)
✓ should accept original html for selser (1.1.1, headers)
✓ should return http 400 if supplied data-parsoid is empty
41) should return http 400 if supplied data-parsoid is a string
✓ should use selser with supplied wikitext
✓ should use selser with wikitext fetched from the mw api
✓ should fallback to non-selective serialization
✓ should apply data-parsoid to duplicated ids
✓ should return a 400 for missing inline data-mw (2.x)
✓ should return a 400 for not supplying data-mw
✓ should apply original data-mw
✓ should return a 400 for missing modified data-mw
✓ should give precedence to inline data-mw over original
✓ should not apply original data-mw if modified is supplied
✓ should apply original data-mw when modified is absent (captions 1)
✓ should give precedence to inline data-mw over modified (captions 2)
✓ should give precedence to modified data-mw over original (captions 3)
✓ should apply extra normalizations (scrub_wikitext)
✓ should apply extra normalizations (scrubWikitext)
✓ should suppress extra normalizations
✓ should return a request too large error
✓ should fail to downgrade the original version for an unknown transition
pb2pb
✓ should require an original or previous version
42) should accept the previous revision to reuse expansions
43) should accept the original and reuse certain expansions
✓ should refuse an unknown conversion (2.x -> 999.x)
✓ should downgrade 999.x content to 2.x
✓ should accept the original and update the redlinks
44) should refuse variant conversion on en page
45) should accept the original and do variant conversion (given oldid)
46) should accept the original and do variant conversion (given pagelanguage)
47) should not perform variant conversion w/ invalid variant (given pagelanguage)
79 passing (4s)
47 failing