import WuhuBase from "../class/WuhuBase";
import Log from "../class/Log";
import Popup from "../class/utils/Popup";
export default class Test extends WuhuBase {
className = 'Test';
public test(): void {
let popup = new Popup('');
popup.getElement()['__POOL__'] = Test.getPool();
// this.case1()
// this.case2()
this.case3().then();
// window.fetch('/test').then(res=>res.text()).then(o=>Log.info(o))
}
private case1() {
const temp = document.createElement("DIV");
const temp2 = document.createElement("DIV");
// @ts-ignore
temp.append(...document.body.childNodes);
// @ts-ignore
temp2.append(...document.head.childNodes);
window.stop();
// document.body.outerHTML = document.body.outerHTML;
Log.info(document.body.outerHTML);
document.body.innerHTML = "";
document.head.innerHTML = "";
// @ts-ignore
document.body.append(...temp.childNodes);
// @ts-ignore
document.head.append(...temp2.childNodes);
}
private case2() {
document.head.insertAdjacentHTML(
"afterbegin",
// ``
``
);
}
private async case3() {
Log.info('window.addRFC', typeof window.addRFC);
Log.info('window.getAction', typeof window.getAction);
Log.info('window.initializeTooltip', typeof window.initializeTooltip);
Log.info('window.renderMiniProfile', typeof window.renderMiniProfile);
// 12
}
}