HTTP tests, follow the instructions below. You need PHP enabled for the
mime.php file in this same directory.
For the file tests, open this page using file:/// protocol.
- Click on
Text attachment.
This should open a popup with entry "Text" selected.
Open page with that type and check it works as expected.
-
same with "Image"
Image jpeg attachment.
-
same with "Image"
Image png attachment.
-
same with "XML"
XML attachment.
-
same with "Web Page"
HTML attachment.
-
Click on
Text attachment.
Selecting "Other..." and entering an invalid mime type "foo", should show an error and keep the dialog open.
Entering "text/plain" should open page as text in browser.
-
Open "View" > "View As", you should see Text, Web Page, XML, Image, Other...
Check they are working as expected.
-
Click on "View" > "View As" > "Other...". entering an invalid mime type "foo", should show an error.
Entering "text/plain" should open current page as text in browser.
-
Non HTTP test, click on this link.
"View" > "View As" should contain only "Page Source". Check it is working.
-
HTTPS test, open this link. Should behave as other http pages.
-
Sniffing tests. Open this text file containing binary content.
You should be able to open it as text in the browser.
TODO:
Not possible to open the following url as text. Need to investigate
"http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.0/win32/en-US/Firefox%20Setup%203.0.exe"