mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 09:09:01 +00:00
Use 5.66 version of Config.mi
Adds a single method
This commit is contained in:
parent
7e60765bde
commit
aae83dffb2
4 changed files with 13 additions and 5 deletions
|
|
@ -62,7 +62,7 @@
|
|||
],
|
||||
[
|
||||
"String",
|
||||
"default_val"
|
||||
"default_value"
|
||||
]
|
||||
]
|
||||
},
|
||||
|
|
@ -75,6 +75,11 @@
|
|||
"attr_name"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"result": "String",
|
||||
"name": "getName",
|
||||
"parameters": []
|
||||
}
|
||||
],
|
||||
"name": "ConfigItem"
|
||||
|
|
|
|||
|
|
@ -4,13 +4,12 @@ import fs from "fs";
|
|||
|
||||
const compilers = path.join(__dirname, "../../../resources/maki_compiler/");
|
||||
|
||||
const libUnknown = path.join(compilers, "Unknown (Winamp 5.03)/lib/");
|
||||
const lib502 = path.join(compilers, "v1.1.13 (Winamp 5.02)/lib/");
|
||||
const lib566 = path.join(compilers, "v1.2.0 (Winamp 5.66)/lib/");
|
||||
|
||||
const files = {
|
||||
pldir: path.join(lib566, "pldir.mi"),
|
||||
config: path.join(libUnknown, "config.mi"),
|
||||
config: path.join(lib566, "config.mi"),
|
||||
std: path.join(lib502, "std.mi"),
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ const compilers = path.join(__dirname, "../../../resources/maki_compiler/");
|
|||
|
||||
const lib502 = path.join(compilers, "v1.1.13 (Winamp 5.02)/lib/");
|
||||
const lib566 = path.join(compilers, "v1.2.0 (Winamp 5.66)/lib/");
|
||||
const libUnknown = path.join(compilers, "Unknown (Winamp 5.03)/lib/");
|
||||
|
||||
test("std.mi", () => {
|
||||
const parsedObjects = parseFile(path.join(lib502, "std.mi"));
|
||||
|
|
@ -20,7 +19,7 @@ test("std.mi", () => {
|
|||
});
|
||||
|
||||
test("config.mi", () => {
|
||||
const parsedObjects = parseFile(path.join(libUnknown, "config.mi"));
|
||||
const parsedObjects = parseFile(path.join(lib566, "config.mi"));
|
||||
expect(parsedObjects).toEqual(config);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,11 @@ class ConfigItem extends MakiObject {
|
|||
unimplementedWarning("getguid");
|
||||
return;
|
||||
}
|
||||
|
||||
getname() {
|
||||
unimplementedWarning("getname");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
export default ConfigItem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue