Add test to make sure we don't regress Connection::encode

This commit is contained in:
Marco Castelluccio 2014-09-24 12:50:50 -07:00
Родитель 85616f1e6a
Коммит 56cecfdd61
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -35,7 +35,7 @@ casper.test.begin("unit tests", 5 + gfxTests.length, function(test) {
casper
.start("http://localhost:8000/index.html")
.waitForText("DONE", function() {
test.assertTextExists("DONE: 4905 pass, 0 fail, 165 known fail, 0 unknown pass", "run unit tests");
test.assertTextExists("DONE: 4907 pass, 0 fail, 165 known fail, 0 unknown pass", "run unit tests");
});
casper

Просмотреть файл

@ -322,6 +322,8 @@ public class TestFileConnection implements Testlet {
file.close();
file = (FileConnection)Connector.open(dirPath + "provaDir/prova%2B");
th.check(file.getName(), "prova+");
th.check(file.getURL(), "file:////provaDir/prova%2B");
file.create();
file.close();
file = (FileConnection)Connector.open(dirPath + "provaDir/prova+");