1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Move node files for UI testing to v1.0 directory structures

This commit is contained in:
Kazuhito Yokoi 2020-01-14 15:42:56 +09:00
parent b96164d4f5
commit 63978e226b
15 changed files with 26 additions and 26 deletions

View File

@ -14,46 +14,46 @@
* limitations under the License. * limitations under the License.
**/ **/
var injectNode = require('./core/core/20-inject_page'); var injectNode = require('./core/common/20-inject_page');
var debugNode = require('./core/core/58-debug_page'); var debugNode = require('./core/common/21-debug_page');
var templateNode = require('./core/core/80-template_page'); var functionNode = require('./core/function/10-function_page');
var functionNode = require('./core/core/80-function_page'); var changeNode = require('./core/function/15-change_page');
var mqttInNode = require('./core/io/10-mqttin_page'); var rangeNode = require('./core/function/16-range_page');
var mqttOutNode = require('./core/io/10-mqttout_page'); var templateNode = require('./core/function/80-template_page');
var httpInNode = require('./core/io/21-httpin_page'); var mqttInNode = require('./core/network/10-mqttin_page');
var httpResponseNode = require('./core/io/21-httpresponse_page'); var mqttOutNode = require('./core/network/10-mqttout_page');
var changeNode = require('./core/logic/15-change_page'); var httpInNode = require('./core/network/21-httpin_page');
var rangeNode = require('./core/logic/16-range_page'); var httpResponseNode = require('./core/network/21-httpresponse_page');
var httpRequestNode = require('./core/io/21-httprequest_page'); var httpRequestNode = require('./core/network/21-httprequest_page');
var htmlNode = require('./core/parsers/70-HTML_page'); var htmlNode = require('./core/parsers/70-HTML_page');
var jsonNode = require('./core/parsers/70-JSON_page'); var jsonNode = require('./core/parsers/70-JSON_page');
var fileInNode = require('./core/storage/50-filein_page'); var fileInNode = require('./core/storage/10-filein_page');
var nodeCatalog = { var nodeCatalog = {
// input // common
"inject": injectNode, "inject": injectNode,
"httpIn": httpInNode,
"mqttIn":mqttInNode,
// output
"debug": debugNode, "debug": debugNode,
"httpResponse": httpResponseNode,
"mqttOut": mqttOutNode,
// function // function
"function": functionNode, "function": functionNode,
"template": templateNode,
"change": changeNode, "change": changeNode,
"range": rangeNode, "range": rangeNode,
"template": templateNode,
// network
"mqttIn": mqttInNode,
"mqttOut": mqttOutNode,
"httpIn": httpInNode,
"httpResponse": httpResponseNode,
"httpRequest": httpRequestNode, "httpRequest": httpRequestNode,
// parser
"html": htmlNode, "html": htmlNode,
"json":jsonNode, "json": jsonNode,
// storage // storage
"fileIn": fileInNode, "fileIn": fileInNode
} };
function create(type, id) { function create(type, id) {
var node = nodeCatalog[type]; var Node = nodeCatalog[type];
return new node(id); return new Node(id);
} }
module.exports = { module.exports = {

View File

@ -22,7 +22,7 @@ var helper = require("../../editor_helper");
var debugTab = require('../../pageobjects/editor/debugTab_page'); var debugTab = require('../../pageobjects/editor/debugTab_page');
var workspace = require('../../pageobjects/editor/workspace_page'); var workspace = require('../../pageobjects/editor/workspace_page');
var specUtil = require('../../pageobjects/util/spec_util_page'); var specUtil = require('../../pageobjects/util/spec_util_page');
var mqttConfig = require('../../pageobjects/nodes/core/io/10-mqttconfig_page.js'); var mqttConfig = require('../../pageobjects/nodes/core/network/10-mqttconfig_page.js');
var httpNodeRoot = "/api"; var httpNodeRoot = "/api";