mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Remove gtk.demo.js, toolkit.demo.js, squel.demo.js, and merge to testloader.js
This commit is contained in:
parent
f8ee2cf3e5
commit
543f7b61e7
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"description": "WelsonJS GTK-Server (GTK 2) test profile",
|
||||
"description": "WelsonJS test profile for Miscellaneous",
|
||||
"date": "2023-11-07",
|
||||
"revision": "r1",
|
||||
"authors": [
|
||||
|
@ -40,5 +40,15 @@
|
|||
"description": "GTK Server를 이용한 GUI(그래픽 사용자 인터페이스) 구현 가능 여부 확인",
|
||||
"tags": ["GTK", "GTK"]
|
||||
},
|
||||
]
|
||||
}
|
||||
{
|
||||
"id": "toolkit_msedge_test",
|
||||
"description": "This example includes Microsoft Edge controls and mouse clicks.",
|
||||
"tags": ["Web Browser", "Web Browser Control"]
|
||||
},
|
||||
{
|
||||
"id": "squel_sqlmap_test",
|
||||
"description": "Test SQL mapping with squel library.",
|
||||
"tags": ["Database", "SQL Mapper"]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
function main(args) {
|
||||
console.log(squel.select({ separator: "\n" })
|
||||
.from("students")
|
||||
.field("name")
|
||||
.field("MIN(test_score)")
|
||||
.field("MAX(test_score)")
|
||||
.field("GROUP_CONCAT(DISTINCT test_score ORDER BY test_score DESC SEPARATOR ' ')")
|
||||
.group("name")
|
||||
.toString());
|
||||
}
|
||||
|
||||
exports.main = main;
|
|
@ -694,7 +694,7 @@ var test_implements = {
|
|||
console.log("GUI 환경에서 실행하여 주십시오");
|
||||
},
|
||||
|
||||
// profile: data/test-gtk-server.json
|
||||
// profile: data/test-misc-20231107.json
|
||||
"gtkserver_test": function() {
|
||||
var GTK = require("lib/gtk");
|
||||
|
||||
|
@ -762,6 +762,32 @@ var test_implements = {
|
|||
|
||||
GTK.wait();
|
||||
}
|
||||
},
|
||||
|
||||
// profile: data/test-misc-20231107.json
|
||||
"toolkit_msedge_test": function() {
|
||||
var Chrome = require("lib/chrome");
|
||||
var Toolkit = require("lib/toolkit");
|
||||
|
||||
var wbInstance = Chrome.create().setVendor("msedge").open("https://google.com");
|
||||
sleep(5000);
|
||||
//console.log(wbInstance.getHTML("body"));
|
||||
|
||||
wbInstance.focus();
|
||||
wbInstance.traceMouseClick();
|
||||
Toolkit.sendClick("Google", 30, 30, 1);
|
||||
},
|
||||
|
||||
// profile: data/test-misc-20231107.json
|
||||
"squel_sqlmap_test": function() {
|
||||
console.log(squel.select({ separator: "\n" })
|
||||
.from("students")
|
||||
.field("name")
|
||||
.field("MIN(test_score)")
|
||||
.field("MAX(test_score)")
|
||||
.field("GROUP_CONCAT(DISTINCT test_score ORDER BY test_score DESC SEPARATOR ' ')")
|
||||
.group("name")
|
||||
.toString());
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
// toolkit.demo.js
|
||||
// This example includes Microsoft Edge controls and mouse clicks.
|
||||
|
||||
var Chrome = require("lib/chrome");
|
||||
var Toolkit = require("lib/toolkit");
|
||||
|
||||
function main() {
|
||||
var wbInstance = Chrome.create().setVendor("msedge").open("https://google.com");
|
||||
sleep(5000);
|
||||
//console.log(wbInstance.getHTML("body"));
|
||||
|
||||
wbInstance.focus();
|
||||
wbInstance.traceMouseClick();
|
||||
Toolkit.sendClick("Google", 30, 30, 1);
|
||||
}
|
||||
|
||||
exports.main = main;
|
Loading…
Reference in New Issue
Block a user