specify a single fs root and set the memory card file: URL to it

This commit is contained in:
Myk Melez 2014-12-29 03:08:00 -08:00
Родитель 07067cfd9d
Коммит 142fb1c788
3 изменённых файлов: 2 добавлений и 4 удалений

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

@ -9,13 +9,11 @@ var RECORD_STORE_BASE = "/RecordStore";
// and System.getProperty to provide inquiring midlets with the list. Each root // and System.getProperty to provide inquiring midlets with the list. Each root
// must have a trailing slash. See FileSystemRegistry.listRoots for more info. // must have a trailing slash. See FileSystemRegistry.listRoots for more info.
MIDP.fsRoots = [ MIDP.fsRoots = [
"MemoryCard/",
"/", "/",
]; ];
// The names here should be localized. // The names here should be localized.
MIDP.fsRootNames = [ MIDP.fsRootNames = [
"Memory card", "Memory card",
"Phone memory",
]; ];
function getAbsolutePath(jPath) { function getAbsolutePath(jPath) {

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

@ -90,7 +90,7 @@ Native.create("java/lang/System.getProperty0.(Ljava/lang/String;)Ljava/lang/Stri
value = null; value = null;
break; break;
case "fileconn.dir.memorycard": case "fileconn.dir.memorycard":
value = "file:///MemoryCard/"; value = "file:////";
break; break;
case "fileconn.dir.private": case "fileconn.dir.private":
value = "file:////"; value = "file:////";

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

@ -62,7 +62,7 @@ var gfxTests = [
]; ];
var expectedUnitTestResults = [ var expectedUnitTestResults = [
{ name: "pass", number: 71537 }, { name: "pass", number: 71536 },
{ name: "fail", number: 0 }, { name: "fail", number: 0 },
{ name: "known fail", number: 180 }, { name: "known fail", number: 180 },
{ name: "unknown pass", number: 0 } { name: "unknown pass", number: 0 }