mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-08 08:17:31 +09:00
parent
5830ff1f2b
commit
74df182488
232 changed files with 256 additions and 36730 deletions
|
|
@ -15,12 +15,7 @@ add_task(function* check_definition() {
|
|||
do_check_true(OS.Constants.Path!=null);
|
||||
do_check_true(OS.Constants.Sys!=null);
|
||||
//check system name
|
||||
if (OS.Constants.Sys.Name == "Gonk") {
|
||||
// Services.appinfo.OS doesn't know the difference between Gonk and Android
|
||||
do_check_eq(Services.appinfo.OS, "Android");
|
||||
} else {
|
||||
do_check_eq(Services.appinfo.OS, OS.Constants.Sys.Name);
|
||||
}
|
||||
do_check_eq(Services.appinfo.OS, OS.Constants.Sys.Name);
|
||||
|
||||
//check if using DEBUG build
|
||||
if (Components.classes["@mozilla.org/xpcom/debug;1"].getService(Components.interfaces.nsIDebug2).isDebugBuild == true) {
|
||||
|
|
|
|||
|
|
@ -96,8 +96,8 @@ add_task(function* test_nonproto() {
|
|||
|
||||
// Prototypical tests, operating on |File| handles.
|
||||
add_task(function* test_proto() {
|
||||
if (OS.Constants.Sys.Name == "Android" || OS.Constants.Sys.Name == "Gonk") {
|
||||
do_print("File.prototype.setDates is not implemented for Android/B2G");
|
||||
if (OS.Constants.Sys.Name == "Android") {
|
||||
do_print("File.prototype.setDates is not implemented for Android");
|
||||
do_check_eq(OS.File.prototype.setDates, undefined);
|
||||
return;
|
||||
}
|
||||
|
|
@ -107,7 +107,7 @@ add_task(function* test_proto() {
|
|||
"test_osfile_async_setDates_proto.tmp");
|
||||
yield OS.File.writeAtomic(path, new Uint8Array(1));
|
||||
|
||||
try {
|
||||
try {
|
||||
let fd = yield OS.File.open(path, {write: true});
|
||||
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ add_task(function* test_simple_paths() {
|
|||
|
||||
// Test presence of paths that only exist on Desktop platforms
|
||||
add_task(function* test_desktop_paths() {
|
||||
if (OS.Constants.Sys.Name == "Android" || OS.Constants.Sys.Name == "Gonk") {
|
||||
if (OS.Constants.Sys.Name == "Android") {
|
||||
return;
|
||||
}
|
||||
do_check_true(!!OS.Constants.Path.desktopDir);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue