forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
18
lib/aura/Tests/Data/electron-append.js
Normal file
18
lib/aura/Tests/Data/electron-append.js
Normal file
@ -0,0 +1,18 @@
|
||||
electron.ipcMain.on('log-main', (event, type, text) => {
|
||||
switch (type) {
|
||||
case "log":
|
||||
console.log(text);
|
||||
break;
|
||||
case "info":
|
||||
console.info(text);
|
||||
break;
|
||||
case "warn":
|
||||
console.warn(text);
|
||||
break;
|
||||
case "error":
|
||||
console.error(text);
|
||||
break;
|
||||
default:
|
||||
throw "Unreachable";
|
||||
}
|
||||
});
|
20
lib/aura/Tests/Data/index.html
Normal file
20
lib/aura/Tests/Data/index.html
Normal file
@ -0,0 +1,20 @@
|
||||
<!--
|
||||
Custom index.html to prevent a wrong layout of test results due to the Kha canvas.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Aura Unit Tests</title>
|
||||
</head>
|
||||
|
||||
<body style="margin: 0; padding: 0;">
|
||||
<!--
|
||||
We still need to include the canvas to prevent Kha errors, but it's
|
||||
at size (0, 0).
|
||||
-->
|
||||
<canvas id="khanvas" width="0" height="0" tabindex="-1"></canvas>
|
||||
|
||||
<script src="kha.js"></script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user