Module talk:Autotranslate/testcases

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

All tests passed.

Test: autotranslate
Text Expected Actual
✓[OK] {{#invoke: Autotranslate | autotranslate | base = Template:Autotranslate/test | lang = en }} Template:Autotranslate/test/en (lang=en) was called Template:Autotranslate/test/en (lang=en) was called
✓[OK] {{#invoke: Autotranslate/sandbox | autotranslate | base = Template:Autotranslate/test | lang = en }} Template:Autotranslate/test/en (lang=en) was called Template:Autotranslate/test/en (lang=en) was called
✓[OK] {{#invoke: Autotranslate | autotranslate | base = Template:Autotranslate/test | lang = fr }} Template:Autotranslate/test/en (lang=fr) was called Template:Autotranslate/test/en (lang=fr) was called
✓[OK] {{#invoke: Autotranslate/sandbox | autotranslate | base = Template:Autotranslate/test | lang = fr }} Template:Autotranslate/test/en (lang=fr) was called Template:Autotranslate/test/en (lang=fr) was called
✓[OK] {{#invoke: Autotranslate | autotranslate | base = Template:Autotranslate/test | lang = pl }} Template:Autotranslate/test/pl (lang=pl) was called Template:Autotranslate/test/pl (lang=pl) was called
✓[OK] {{#invoke: Autotranslate/sandbox | autotranslate | base = Template:Autotranslate/test | lang = pl }} Template:Autotranslate/test/pl (lang=pl) was called Template:Autotranslate/test/pl (lang=pl) was called
✓[OK] {{#invoke: Autotranslate | autotranslate | base = Template:Autotranslate/test | lang = szl }} Template:Autotranslate/test/pl (lang=szl) was called Template:Autotranslate/test/pl (lang=szl) was called
✓[OK] {{#invoke: Autotranslate/sandbox | autotranslate | base = Template:Autotranslate/test | lang = szl }} Template:Autotranslate/test/pl (lang=szl) was called Template:Autotranslate/test/pl (lang=szl) was called
✓[OK] {{#invoke: Autotranslate | autotranslate | base = Autotranslate/test | lang = szl }} Template:Autotranslate/test/pl (lang=szl) was called Template:Autotranslate/test/pl (lang=szl) was called
✓[OK] {{#invoke: Autotranslate/sandbox | autotranslate | base = Autotranslate/test | lang = szl }} Template:Autotranslate/test/pl (lang=szl) was called Template:Autotranslate/test/pl (lang=szl) was called
✓[OK] {{#invoke: Autotranslate | autotranslate | base = Autotranslate/test | lang = an }} Template:Autotranslate/test/es (lang=an) was called Template:Autotranslate/test/es (lang=an) was called
✓[OK] {{#invoke: Autotranslate/sandbox | autotranslate | base = Autotranslate/test | lang = an }} Template:Autotranslate/test/es (lang=an) was called Template:Autotranslate/test/es (lang=an) was called
✓[OK] {{#invoke: Autotranslate | autotranslate | base = Autotranslate/test | lang = an | text=hello | 1=arg #1 }} Template:Autotranslate/test/es (1=arg #1, lang=an, text=hello) was called Template:Autotranslate/test/es (1=arg #1, lang=an, text=hello) was called
✓[OK] {{#invoke: Autotranslate/sandbox | autotranslate | base = Autotranslate/test | lang = an | text=hello | 1=arg #1 }} Template:Autotranslate/test/es (1=arg #1, lang=an, text=hello) was called Template:Autotranslate/test/es (1=arg #1, lang=an, text=hello) was called
Test: autotranslate_errors
Text Expected Actual
✓[OK] Module:Autotranslate {"base":"This template does not exist 435"} {false,'No fallback page found for autotranslate (base=[[:This template does not exist 435]], lang=en)'} {false,'No fallback page found for autotranslate (base=[[:This template does not exist 435]], lang=en)'}
✓[OK] Module:Autotranslate/sandbox {"base":"This template does not exist 435"} {false,'No fallback page found for autotranslate (base=[[:This template does not exist 435]], lang=en)'} {false,'No fallback page found for autotranslate (base=[[:This template does not exist 435]], lang=en)'}
✓[OK] Module:Autotranslate {"base":"Category:This template does not exist 435"} {false,'No fallback page found for autotranslate (base=[[:Category:This template does not exist 435]], lang=en)'} {false,'No fallback page found for autotranslate (base=[[:Category:This template does not exist 435]], lang=en)'}
✓[OK] Module:Autotranslate/sandbox {"base":"Category:This template does not exist 435"} {false,'No fallback page found for autotranslate (base=[[:Category:This template does not exist 435]], lang=en)'} {false,'No fallback page found for autotranslate (base=[[:Category:This template does not exist 435]], lang=en)'}
✓[OK] Module:Autotranslate {"base":"[invalid title]"} {false,'No fallback page found for autotranslate (base=[[:[invalid title]]], lang=en)'} {false,'No fallback page found for autotranslate (base=[[:[invalid title]]], lang=en)'}
✓[OK] Module:Autotranslate/sandbox {"base":"[invalid title]"} {false,'No fallback page found for autotranslate (base=[[:[invalid title]]], lang=en)'} {false,'No fallback page found for autotranslate (base=[[:[invalid title]]], lang=en)'}