aus Wikipedia, der freien Enzyklopädie
Die Druckversion wird nicht mehr unterstützt und kann Darstellungsfehler aufweisen. Bitte aktualisiere deine Browser-Lesezeichen und verwende stattdessen die Standard-Druckfunktion des Browsers.
Testfälle zum Modul:FileMedia (2023-01-01
Wikidata: 2023-01-01
):
getExtension
Aufruf 1
Erwartet
Ergebnis
» test.svg«
»svg«
»svg«
» File: test.gif «
»gif«
»gif«
» Media: test.png «
»png«
»png«
» File: test.jpeg«
»jpeg«
»jpeg«
» File: test.JPEG«
»jpeg«
»jpeg«
» Media: flop«
»«
»«
»WP:test.svg«
»«
»«
» «
»«
»«
»«
»«
getHeight
Aufruf 1
Erwartet
Ergebnis
»Wikipedia-logo-v2-de.png«
»155«
»155«
» File: not existing.gif «
»«
»«
» «
»«
»«
»«
»«
getHeightWidth
Aufruf 1
Erwartet
Ergebnis
»Wikipedia-logo-v2-de.png«
»155x135px«
»155x135px«
» File: not existing.gif «
»«
»«
» «
»«
»«
»«
»«
getMimeType
Aufruf 1
Erwartet
Ergebnis
»Wikipedia-logo-v2-de.png«
»image/png«
»image/png«
» File: not existing.gif «
»«
»«
» «
»«
»«
»«
»«
getPageCount
Aufruf 1
Erwartet
Ergebnis
»Wikipedia-einmaleins_web.pdf«
»20«
»20«
»Wikipedia-logo-v2-de.png«
»0«
»0«
» File: not existing.gif «
»«
»«
» «
»«
»«
»«
»«
getSize
Aufruf 1
Erwartet
Ergebnis
»Wikipedia-logo-v2-de.png«
»10239«
»10239«
» File: not existing.gif «
»«
»«
» «
»«
»«
»«
»«
getTitle
Aufruf 1
Erwartet
Ergebnis
» test.svg«
»test.svg«
»test.svg«
» File: test.gif «
»test.gif«
»test.gif«
» Media: test.png «
»test.png«
»test.png«
» Media: flop«
»«
»«
»WP:test.svg«
»«
»«
» «
»«
»«
»«
»«
getType
Aufruf 1
Erwartet
Ergebnis
» test.svg«
»vector«
»vector«
» test.png«
»pixel«
»pixel«
» test.PNG«
»pixel«
»pixel«
» test.mp3«
»audio«
»audio«
»test«
»«
»«
getWidth
Aufruf 1
Erwartet
Ergebnis
»Wikipedia-logo-v2-de.png«
»135«
»135«
» File: not existing.gif «
»«
»«
» «
»«
»«
»«
»«
isFile
Aufruf 1
Erwartet
Ergebnis
» Datei:Icon-gears2.svg «
»1«
»1«
»Icon-gears2.svg«
»1«
»1«
»Datei.svg«
»«
»1«
»Wikipedia:Hauptseite«
»«
»«
» «
»«
»«
isType
Aufruf
Erwartet
Ergebnis
1
2
» test.svg«
» vector«
»1«
»1«
» test.svg«
» file «
»1«
»1«
» test.svg«
»image«
»1«
»1«
» test.doc«
»paged«
»1«
»1«
» test.DOC«
»paged«
»1«
»1«
»Datei:test.svg«
»file«
»1«
»1«
»WP:test.svg«
»file«
»«
»«
» test.doc«
»file«
»«
»«
» «
»file«
»«
»«
»test.svg«
» «
»«
»«
»«
»«
setParSize
Aufruf
Erwartet
Ergebnis
»«
»«
» «
»«
»«
»50px«
»50px«
»50px«
»234«
»234px«
»234px«
»x100px«
»x100px«
»x100px«
»x100«
»x100px«
»x100px«
»20x30px«
»20x30px«
»20x30px«
»100x200«
»100x200px«
»100x200px«
»70PX«
»70px«
»70px«
» 50px «
»50px«
»50px«
»mini«
»«
»«
»0«
»«
»«
»12345px«
»«
»«
»-89px«
»«
»«
»50px|100px«
»50px«
»50px«
»|100px«
»100px«
»100px«
»|100px«
»100px«
»100px«
»50|pipe=1«
»|50px«
»|50px«
»|100px|pipe=1«
»|100px«
»|100px«
»xyz|100px|pipe=1«
»|100px«
»|100px«
»xyz|100px|pipe=0«
»100px«
»100px«
»||pipe=1«
»«
»«
»?|pipe=1«
»«
»«