mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-05 01:44:16 +08:00
🍓 Sync 2026-09-15 02:13:06
This commit is contained in:
1 parent
0e5393594c
commit
1dd96ac2bb
146 files changed
+26541
-508
No files matched your search
@@ -43,11 +43,11 @@ function setup(fail = false) {
|
||||
assert.equal(unsafe.children[0].title,'Unknown vendor');
|
||||
const fnos=t.node();
|
||||
t.oui.decorate(fnos,'BA:71:BE:00:00:01',true);
|
||||
assert.equal(fnos.children[0].title,'fnOS 飞牛OS');
|
||||
assert.equal(fnos.children[0].title,'fnOS / FygoOS');
|
||||
assert(fnos.children[0].src.endsWith('/fnos.svg'));
|
||||
const overridden=t.node();
|
||||
t.oui.decorate(overridden,'00:11:22:00:00:00',true);
|
||||
assert.equal(overridden.children[0].title,'fnOS 飞牛OS');
|
||||
assert.equal(overridden.children[0].title,'fnOS / FygoOS');
|
||||
fnos.children[0].onerror();
|
||||
assert(fnos.children[0].src.endsWith('/computer.svg'));
|
||||
t=setup(true);
|
||||
@@ -71,7 +71,7 @@ function setup(fail = false) {
|
||||
enabled = true;
|
||||
const host = view.renderHostname('<img src=x>', '00:11:22:00:00:00');
|
||||
assert.equal(host.children[0].text, '<img src=x>');
|
||||
assert.equal(scripts[0].src, '/luci-static/resources/oui/oui.js?v=7');
|
||||
assert.equal(scripts[0].src, '/luci-static/resources/oui/oui.js?v=8');
|
||||
view.renderHostname('host2', '00:11:22:00:00:01');
|
||||
assert.equal(scripts.length, 1);
|
||||
console.log('OUI runtime and optional integration checks passed');
|
||||
|
||||
Reference in new issue
Block a user