mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-09 13:16:05 +00:00
fix
This commit is contained in:
parent
0f8557b09f
commit
c49d2720f2
|
@ -55,8 +55,10 @@ Router.add('/', function(render) {
|
||||||
|
|
||||||
// test
|
// test
|
||||||
Router.add('/test', function(render) {
|
Router.add('/test', function(render) {
|
||||||
|
var test_profile_filepath = "data/test-oss-korea-2023.json";
|
||||||
|
|
||||||
window.test_start = function(test_id) {
|
window.test_start = function(test_id) {
|
||||||
SHELL.show(["cscript", "app.js", "testloader", test_id]);
|
SHELL.show(["cscript", "app.js", "testloader", test_id, test_profile_filepath]);
|
||||||
};
|
};
|
||||||
|
|
||||||
window.gui_check = function() {
|
window.gui_check = function() {
|
||||||
|
@ -69,7 +71,7 @@ Router.add('/test', function(render) {
|
||||||
alert("모든 메시지가 정상적으로 보였다면 테스트에 성공한 것입니다.");
|
alert("모든 메시지가 정상적으로 보였다면 테스트에 성공한 것입니다.");
|
||||||
};
|
};
|
||||||
|
|
||||||
var content = FILE.readFile("data/test-oss-korea-2023.json", FILE.CdoCharset.CdoUTF_8);
|
var content = FILE.readFile(test_profile_filepath, FILE.CdoCharset.CdoUTF_8);
|
||||||
var data = JSON.parse(content);
|
var data = JSON.parse(content);
|
||||||
render("app/test.html", {
|
render("app/test.html", {
|
||||||
"data": data
|
"data": data
|
||||||
|
|
|
@ -420,6 +420,13 @@ var test_implements = {
|
||||||
console.log("응답 시간: " + SYS.ping("1.1.1.1") + "ms");
|
console.log("응답 시간: " + SYS.ping("1.1.1.1") + "ms");
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"network_bitsadmin_test": function() {
|
||||||
|
var HTTP = require("lib/http");
|
||||||
|
var bits = HTTP.create("BITS");
|
||||||
|
var response = bits.open("GET", "https://httpbin.org/get").send().responseText;
|
||||||
|
console.log(response);
|
||||||
|
},
|
||||||
|
|
||||||
"extramath_dtm": function() {
|
"extramath_dtm": function() {
|
||||||
var ExtraMath = require("lib/extramath");
|
var ExtraMath = require("lib/extramath");
|
||||||
|
|
||||||
|
@ -991,7 +998,7 @@ var test_implements = {
|
||||||
};
|
};
|
||||||
|
|
||||||
function main(args) {
|
function main(args) {
|
||||||
// EXAMPLE: cscript app.js testloader <es5_polyfills> <data\test-oss-20231030.json>
|
// EXAMPLE: cscript app.js testloader <es5_polyfills> <data\test-oss-korea-2023.json>
|
||||||
if (args.length > 0) {
|
if (args.length > 0) {
|
||||||
var test_id = args[0];
|
var test_id = args[0];
|
||||||
var profilefile = args[1];
|
var profilefile = args[1];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user