From 353d66296316547f8d62cda4b1b17113cc56767a Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Wed, 29 Dec 2021 16:37:58 -0800 Subject: [PATCH] Add basic load test --- packages/mindplot/package.json | 4 +- .../src/components/export/Exporter.ts | 3 +- .../src/components/export/ImageExport.ts | 15 + .../components/export/PlainTextExporter.ts | 15 + .../src/components/export/TxtExporter.ts | 10 - .../components/export/xslt/mm2markdown.xsl | 2139 +++++++++++++++++ .../src/components/export/xslt/mm2text.xsl | 38 + .../components/export/xslt/mm2xls_utf8.xsl | 116 + .../persistence/XMLSerializerBeta.js | 16 +- .../persistence/XMLSerializerPela.js | 12 + .../persistence/XMLSerializerTango.js | 4 +- packages/mindplot/src/index.js | 2 +- .../test/unit/TxTExportTestSuite.test.ts | 9 - .../export/PlainTextExportTestSuite.test.ts | 23 + .../{ => layout}/BalancedTestSuite.test.js | 2 +- .../unit/{ => layout}/EventsTestSuite.test.js | 2 +- .../unit/{ => layout}/FreeTestSuite.test.js | 2 +- .../{ => layout}/SymmetricTestSuite.test.js | 2 +- .../test/unit/{ => layout}/TestSuite.js | 0 .../mindplot/test/unit/resources/welcome.xml | 48 - .../mindplot/test/unit/samples/welcome.svg | 343 +++ .../mindplot/test/unit/samples/welcome.xml | 70 + 22 files changed, 2795 insertions(+), 80 deletions(-) create mode 100644 packages/mindplot/src/components/export/ImageExport.ts create mode 100644 packages/mindplot/src/components/export/PlainTextExporter.ts delete mode 100644 packages/mindplot/src/components/export/TxtExporter.ts create mode 100644 packages/mindplot/src/components/export/xslt/mm2markdown.xsl create mode 100644 packages/mindplot/src/components/export/xslt/mm2text.xsl create mode 100644 packages/mindplot/src/components/export/xslt/mm2xls_utf8.xsl delete mode 100644 packages/mindplot/test/unit/TxTExportTestSuite.test.ts create mode 100644 packages/mindplot/test/unit/export/PlainTextExportTestSuite.test.ts rename packages/mindplot/test/unit/{ => layout}/BalancedTestSuite.test.js (99%) rename packages/mindplot/test/unit/{ => layout}/EventsTestSuite.test.js (97%) rename packages/mindplot/test/unit/{ => layout}/FreeTestSuite.test.js (99%) rename packages/mindplot/test/unit/{ => layout}/SymmetricTestSuite.test.js (98%) rename packages/mindplot/test/unit/{ => layout}/TestSuite.js (100%) delete mode 100644 packages/mindplot/test/unit/resources/welcome.xml create mode 100644 packages/mindplot/test/unit/samples/welcome.svg create mode 100644 packages/mindplot/test/unit/samples/welcome.xml diff --git a/packages/mindplot/package.json b/packages/mindplot/package.json index 6fc1c59f..e6da2e57 100644 --- a/packages/mindplot/package.json +++ b/packages/mindplot/package.json @@ -26,7 +26,7 @@ "lint": "eslint src", "playground": "webpack serve --config webpack.playground.js", "cy:run": "cypress run", - "test:unit": "jest ./test/unit/*.ts ./test/unit/*.js", + "test:unit": "jest ./test/unit/export/*.ts ./test/unit/layout/*.js", "test:integration": "start-server-and-test playground http-get://localhost:8081 cy:run", "test": "yarn test:unit && yarn test:integration" }, @@ -70,6 +70,6 @@ "webpack-bundle-analyzer": "^4.5.0", "webpack-cli": "^4.7.2", "webpack-dev-server": "^3.11.2", - "webpack-merge": "^5.8.0" + "webpack-merge": "^5.8.0" } } diff --git a/packages/mindplot/src/components/export/Exporter.ts b/packages/mindplot/src/components/export/Exporter.ts index 4086a7ee..65b196a5 100644 --- a/packages/mindplot/src/components/export/Exporter.ts +++ b/packages/mindplot/src/components/export/Exporter.ts @@ -1,7 +1,6 @@ -import Mindmap from '../model/Mindmap'; interface Exporter { - export(mindplot: Mindmap): string; + export(): string; } export default Exporter; \ No newline at end of file diff --git a/packages/mindplot/src/components/export/ImageExport.ts b/packages/mindplot/src/components/export/ImageExport.ts new file mode 100644 index 00000000..9e05b026 --- /dev/null +++ b/packages/mindplot/src/components/export/ImageExport.ts @@ -0,0 +1,15 @@ + +import Exporter from "./Exporter"; + +class TextExporter implements Exporter { + svgElement: Element; + constructor(svgElement: Element) { + this.svgElement = svgElement; + } + + export(): string { + return "TBI"; + + } +} +export default TextExporter; \ No newline at end of file diff --git a/packages/mindplot/src/components/export/PlainTextExporter.ts b/packages/mindplot/src/components/export/PlainTextExporter.ts new file mode 100644 index 00000000..31fad13d --- /dev/null +++ b/packages/mindplot/src/components/export/PlainTextExporter.ts @@ -0,0 +1,15 @@ +import Exporter from "./Exporter"; +import Mindmap from "../model/Mindmap"; + + +class PlainTextExporter implements Exporter { + mindplot: Mindmap; + constructor(mindplot: Mindmap) { + this.mindplot = mindplot; + } + + export(): string { + return "TBI"; + } +} +export default PlainTextExporter; \ No newline at end of file diff --git a/packages/mindplot/src/components/export/TxtExporter.ts b/packages/mindplot/src/components/export/TxtExporter.ts deleted file mode 100644 index 2b45e548..00000000 --- a/packages/mindplot/src/components/export/TxtExporter.ts +++ /dev/null @@ -1,10 +0,0 @@ -import Exporter from "./Exporter"; -import Mindmap from "../model/Mindmap"; - - -class TextExporter implements Exporter { - export(mindplot: Mindmap): string { - return "some value"; - } -} -export default TextExporter; \ No newline at end of file diff --git a/packages/mindplot/src/components/export/xslt/mm2markdown.xsl b/packages/mindplot/src/components/export/xslt/mm2markdown.xsl new file mode 100644 index 00000000..2b3a88e1 --- /dev/null +++ b/packages/mindplot/src/components/export/xslt/mm2markdown.xsl @@ -0,0 +1,2139 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + freeplane-xslt/mm2markdown.xsl at master · jannecederberg/freeplane-xslt · GitHub + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Skip to content + + + + + + + + + + +
+ +
+ + + + + + + +
+ + + +
+ + + + + + + + + + +
+
+
+ + + + + + + + + + + + + + +
+
+ + + + + + + + +
+ + + + + Permalink + + +
+ +
+
+ + + master + + + + +
+
+
+ Switch branches/tags + +
+ + + +
+ +
+ +
+ + +
+ +
+ + + + + + + + + + + + + + + + +
+ + +
+
+
+
+ +
+ +
+ + + + Go to file + + +
+ + + + +
+
+
+ + + + +
+ +
+
+
 
+
+ +
+
 
+ Cannot retrieve contributors at this time +
+
+ + + + + + + +
+ +
+ + +
+ + 154 lines (136 sloc) + + 4.96 KB +
+ +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+
+ +
+ +
+
+ + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<?xml version="1.0" encoding="utf-8"?>
<!--
MINDMAPEXPORTFILTER md;markdown Markdown
(c) by Janne Cederberg, 2014
This file is licensed under the GPL.
-->
+
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xlink="http://www.w3.org/1999/xlink">
<xsl:output method="text" indent="yes" />
<xsl:strip-space elements="*" />
+
<!-- xsl:template match="text(normalize-space()='')" / -->
+
<!-- PREVENT DEFAULT OUTPUT (prevents whitespace between tags from leaking to output) -->
<xsl:template match="text()" mode="richtext">
<xsl:value-of select="normalize-space()" />
</xsl:template>
+
<xsl:template match="map">
<xsl:apply-templates select="node" />
</xsl:template>
+
<xsl:template match="node">
<xsl:variable name="depth">
<xsl:apply-templates select=".." mode="depthMesurement"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="$depth > 0">
<xsl:text>&#xA;</xsl:text>
<xsl:call-template name="headingIndicator">
<xsl:with-param name="count" select="$depth"/>
</xsl:call-template>
<xsl:text> </xsl:text>
<xsl:value-of select="normalize-space(@TEXT)" />
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="tokenizeTitle">
<xsl:with-param name="text" select="@TEXT" />
</xsl:call-template>
<!-- xsl:text>% </xsl:text>
<xsl:value-of select="@TEXT" / -->
<!-- xsl:call-template name="tokenizeString" mode="tokenizeTitle">
<xsl:with-param name="list" select="@TEXT"/>
<xsl:with-param name="delimiter" select="'&#xA;'" />
</xsl:call-template -->
</xsl:otherwise>
</xsl:choose>
<xsl:text>&#xa;</xsl:text>
<xsl:choose>
<xsl:when test="richcontent">
<xsl:apply-templates select="richcontent/html/body" mode="richtext" />
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates select="node" />
</xsl:template>
+
<xsl:template name="tokenizeTitle">
<xsl:param name="text" />
<xsl:text>% </xsl:text>
<xsl:choose>
<xsl:when test="not(contains($text, '&#xa;'))">
<xsl:value-of select="normalize-space($text)" />
<xsl:text>&#xa;</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="normalize-space(substring-before($text, '&#xa;'))" />
<xsl:text>&#xa;</xsl:text>
<xsl:call-template name="tokenizeTitle">
<xsl:with-param name="text" select="substring-after($text, '&#xa;')" />
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
+
<xsl:template match="body" mode="richtext">
<xsl:apply-templates select="*" mode="richtext" />
</xsl:template>
+
<!-- Don't process text() nodes for these - prevents unnecessary whitespace -->
<xsl:template match="ul" mode="richtext">
<xsl:text>&#xa;</xsl:text>
<xsl:apply-templates select="li" mode="richtext" />
</xsl:template>
+
<xsl:template match="li" mode="richtext">
<xsl:text>* </xsl:text>
<!-- xsl:value-of select="normalize-space(.)" / -->
<xsl:apply-templates select="*|text()" mode="richtext" />
<xsl:text>&#xa;</xsl:text>
</xsl:template>
+
<xsl:template match="a" mode="richtext">
<xsl:text> [</xsl:text>
<xsl:apply-templates select="node()|text()" mode="richtext" />
<xsl:text>](</xsl:text>
<xsl:value-of select="@href" />
<xsl:text>)</xsl:text>
</xsl:template>
+
<xsl:template match="strong|b" mode="richtext">
<xsl:text> **</xsl:text>
<xsl:value-of select="." />
<xsl:text>**</xsl:text>
</xsl:template>
+
<xsl:template match="em|i" mode="richtext">
<xsl:text> *</xsl:text>
<xsl:value-of select="." />
<xsl:text>*</xsl:text>
</xsl:template>
<xsl:template match="code" mode="richtext">
<!-- todo: skip the ` if inside a pre -->
<xsl:text>`</xsl:text>
<xsl:value-of select="." />
<xsl:text>`</xsl:text>
</xsl:template>
+
<xsl:template match="p|div" mode="richtext">
<xsl:text>&#xa;</xsl:text>
<xsl:apply-templates select="*|text()" mode="richtext" />
<xsl:text>&#xa;</xsl:text> <!-- Block element -->
</xsl:template>
+
<!-- TEMPLATE: headingIndicator -->
<xsl:template name="headingIndicator">
<xsl:param name="count" select="1"/>
<xsl:if test="$count > 0">
<xsl:text>#</xsl:text>
<xsl:call-template name="headingIndicator">
<xsl:with-param name="count" select="$count - 1"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
+
<!-- NODE TAG DEPTH MEASUREMENT -->
<xsl:template match="node" mode="depthMesurement">
<xsl:param name="depth" select=" '0' "/>
<xsl:apply-templates select=".." mode="depthMesurement">
<xsl:with-param name="depth" select="$depth + 1"/>
</xsl:apply-templates>
</xsl:template>
<!-- MAP TAG DEPTH MEASUREMENT -->
<xsl:template match="map" mode="depthMesurement">
<xsl:param name="depth" select=" '0' "/>
<xsl:value-of select="$depth"/>
</xsl:template>
</xsl:stylesheet>
+
+ + + +
+ +
+ + + + +
+ + +
+ + +
+
+ + +
+ + + +
+
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + diff --git a/packages/mindplot/src/components/export/xslt/mm2text.xsl b/packages/mindplot/src/components/export/xslt/mm2text.xsl new file mode 100644 index 00000000..4baaf320 --- /dev/null +++ b/packages/mindplot/src/components/export/xslt/mm2text.xsl @@ -0,0 +1,38 @@ + + + + + + + + + + #MindMapExport FreemindVersion: + + + + + + + + + + (see: + + + + ) + + + + + \ No newline at end of file diff --git a/packages/mindplot/src/components/export/xslt/mm2xls_utf8.xsl b/packages/mindplot/src/components/export/xslt/mm2xls_utf8.xsl new file mode 100644 index 00000000..1478565c --- /dev/null +++ b/packages/mindplot/src/components/export/xslt/mm2xls_utf8.xsl @@ -0,0 +1,116 @@ + + + + + + + + + progid="Excel.Sheet" + + + + + + + + + + + +
+
+
+
+ + + + + + + + + Names + + Values + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + \ No newline at end of file diff --git a/packages/mindplot/src/components/persistence/XMLSerializerBeta.js b/packages/mindplot/src/components/persistence/XMLSerializerBeta.js index af96a417..8f9198f3 100644 --- a/packages/mindplot/src/components/persistence/XMLSerializerBeta.js +++ b/packages/mindplot/src/components/persistence/XMLSerializerBeta.js @@ -15,7 +15,7 @@ * limitations under the License. */ import { - $defined, $assert, createDocument, innerXML, + $defined, $assert, createDocument, } from '@wisemapping/core-js'; import ModelCodeName from './ModelCodeName'; import Mindmap from '../model/Mindmap'; @@ -169,6 +169,18 @@ class XMLSerializerBeta { return noteDom; } + static innerXML(element) { + let result = null; + if ($defined(element.innerXML)) { + result = element.innerXML; + } if ($defined(element.xml)) { + result = element.xml; + } if ($defined(XMLSerializer)) { + result = new XMLSerializer().serializeToString(element); + } + return result; + } + loadFromDom(dom, mapId) { $assert(dom, 'Dom can not be null'); $assert(mapId, 'mapId can not be null'); @@ -184,7 +196,7 @@ class XMLSerializerBeta { $assert( documentElement.tagName === XMLSerializerBeta.MAP_ROOT_NODE, `This seem not to be a map document. Root Tag: '${documentElement.tagName}',HTML:${dom.innerHTML - }XML:${innerXML(dom)}`, + },XML:,${XMLSerializerBeta.innerXML(dom)}`, ); // Start the loading process ... diff --git a/packages/mindplot/src/components/persistence/XMLSerializerPela.js b/packages/mindplot/src/components/persistence/XMLSerializerPela.js index b258954c..585d1cef 100644 --- a/packages/mindplot/src/components/persistence/XMLSerializerPela.js +++ b/packages/mindplot/src/components/persistence/XMLSerializerPela.js @@ -495,6 +495,18 @@ class XMLSerializerPela { } return result; } + + static innerXML(element) { + let result = null; + if ($defined(element.innerXML)) { + result = element.innerXML; + } if ($defined(element.xml)) { + result = element.xml; + } if ($defined(XMLSerializer)) { + result = new XMLSerializer().serializeToString(element); + } + return result; + } } /** diff --git a/packages/mindplot/src/components/persistence/XMLSerializerTango.js b/packages/mindplot/src/components/persistence/XMLSerializerTango.js index 5fb1a5d9..c9bde900 100644 --- a/packages/mindplot/src/components/persistence/XMLSerializerTango.js +++ b/packages/mindplot/src/components/persistence/XMLSerializerTango.js @@ -15,12 +15,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import XMLSerializer from './XMLSerializerPela'; +import XMLSerializerPela from './XMLSerializerPela'; /** * This serializer works exactly the same way as for the former version Pela */ -class XMLSerializerTango extends XMLSerializer { +class XMLSerializerTango extends XMLSerializerPela { } // eslint-disable-next-line camelcase diff --git a/packages/mindplot/src/index.js b/packages/mindplot/src/index.js index d40bccb0..368b677f 100644 --- a/packages/mindplot/src/index.js +++ b/packages/mindplot/src/index.js @@ -22,7 +22,7 @@ import Mindmap from './components/model/Mindmap'; import PersistenceManager from './components/PersistenceManager'; import Designer from './components/Designer'; import LocalStorageManager from './components/LocalStorageManager'; -import TxtExporter from './components/export/TxtExporter'; +import TxtExporter from './components/export/PlainTextExporter'; import Menu from './components/widget/Menu'; diff --git a/packages/mindplot/test/unit/TxTExportTestSuite.test.ts b/packages/mindplot/test/unit/TxTExportTestSuite.test.ts deleted file mode 100644 index 4f48ef01..00000000 --- a/packages/mindplot/test/unit/TxTExportTestSuite.test.ts +++ /dev/null @@ -1,9 +0,0 @@ -import TxtExporter from '../../src/components/export/TxtExporter'; -import Mindmap from '../../src/components/model/Mindmap'; - -test('adds 1 + 2 to equal 3', () => { - const m = new Mindmap("some map"); - - const exporter = new TxtExporter(); - console.log(exporter.export(m)); -}); diff --git a/packages/mindplot/test/unit/export/PlainTextExportTestSuite.test.ts b/packages/mindplot/test/unit/export/PlainTextExportTestSuite.test.ts new file mode 100644 index 00000000..f27ff0a7 --- /dev/null +++ b/packages/mindplot/test/unit/export/PlainTextExportTestSuite.test.ts @@ -0,0 +1,23 @@ +import PlainTextExporter from '../../../src/components/export/PlainTextExporter'; +import Mindmap from '../../../src/components/model/Mindmap'; +import XMLSerializerTango from '../../../src/components/persistence/XMLSerializerTango'; +import fs from 'fs'; +import path from 'path'; + +test('mindplot generation of simple maps', () => { + + // Load DOM ... + const mapStream =fs.readFileSync(path.resolve(__dirname, '../samples/welcome.xml'),{encoding: 'utf-8'}); + const parser = new DOMParser(); + const document = parser.parseFromString(mapStream.toString(), 'text/xml') + + // Convert to mindmap ... + const serializer = new XMLSerializerTango(); + const mindmap:Mindmap = serializer.loadFromDom(document,'welcome'); + + // Inspect ... + console.log(mindmap); + + const exporter = new PlainTextExporter(mindmap); + console.log(exporter.export()); +}); diff --git a/packages/mindplot/test/unit/BalancedTestSuite.test.js b/packages/mindplot/test/unit/layout/BalancedTestSuite.test.js similarity index 99% rename from packages/mindplot/test/unit/BalancedTestSuite.test.js rename to packages/mindplot/test/unit/layout/BalancedTestSuite.test.js index 0bde9b05..bbad44ff 100644 --- a/packages/mindplot/test/unit/BalancedTestSuite.test.js +++ b/packages/mindplot/test/unit/layout/BalancedTestSuite.test.js @@ -1,5 +1,5 @@ import TestSuite from './TestSuite'; -import LayoutManager from '../../src/components/layout/LayoutManager'; +import LayoutManager from '../../../src/components/layout/LayoutManager'; describe('Balanced Test Suite', () => { describe('balancedTest', () => { diff --git a/packages/mindplot/test/unit/EventsTestSuite.test.js b/packages/mindplot/test/unit/layout/EventsTestSuite.test.js similarity index 97% rename from packages/mindplot/test/unit/EventsTestSuite.test.js rename to packages/mindplot/test/unit/layout/EventsTestSuite.test.js index 3bf97c62..59215eb5 100644 --- a/packages/mindplot/test/unit/EventsTestSuite.test.js +++ b/packages/mindplot/test/unit/layout/EventsTestSuite.test.js @@ -1,4 +1,4 @@ -import Events from '../../src/components/Events'; +import Events from '../../../src/components/Events'; describe('Events class suite', () => { class TestClass extends Events { diff --git a/packages/mindplot/test/unit/FreeTestSuite.test.js b/packages/mindplot/test/unit/layout/FreeTestSuite.test.js similarity index 99% rename from packages/mindplot/test/unit/FreeTestSuite.test.js rename to packages/mindplot/test/unit/layout/FreeTestSuite.test.js index 6b843626..401fa861 100644 --- a/packages/mindplot/test/unit/FreeTestSuite.test.js +++ b/packages/mindplot/test/unit/layout/FreeTestSuite.test.js @@ -1,5 +1,5 @@ import TestSuite from './TestSuite'; -import LayoutManager from '../../src/components/layout/LayoutManager'; +import LayoutManager from '../../../src/components/layout/LayoutManager'; expect.extend({ toNotBeBranchesOverlap(received, expected) { diff --git a/packages/mindplot/test/unit/SymmetricTestSuite.test.js b/packages/mindplot/test/unit/layout/SymmetricTestSuite.test.js similarity index 98% rename from packages/mindplot/test/unit/SymmetricTestSuite.test.js rename to packages/mindplot/test/unit/layout/SymmetricTestSuite.test.js index a136f583..145c91a0 100644 --- a/packages/mindplot/test/unit/SymmetricTestSuite.test.js +++ b/packages/mindplot/test/unit/layout/SymmetricTestSuite.test.js @@ -1,5 +1,5 @@ import TestSuite from './TestSuite'; -import LayoutManager from '../../src/components/layout/LayoutManager'; +import LayoutManager from '../../../src/components/layout/LayoutManager'; describe('Symmetric Test Suite', () => { describe('symmetricTest', () => { diff --git a/packages/mindplot/test/unit/TestSuite.js b/packages/mindplot/test/unit/layout/TestSuite.js similarity index 100% rename from packages/mindplot/test/unit/TestSuite.js rename to packages/mindplot/test/unit/layout/TestSuite.js diff --git a/packages/mindplot/test/unit/resources/welcome.xml b/packages/mindplot/test/unit/resources/welcome.xml deleted file mode 100644 index cac5906b..00000000 --- a/packages/mindplot/test/unit/resources/welcome.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/mindplot/test/unit/samples/welcome.svg b/packages/mindplot/test/unit/samples/welcome.svg new file mode 100644 index 00000000..95409e1c --- /dev/null +++ b/packages/mindplot/test/unit/samples/welcome.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Welcome To WiseMapping + + + + + + + + + + 5 min tutorial video ? + Follow the link ! + + + + + + + + + + + + Try it Now! + + + + + + + + + + + Double Click + + + + + + + + + Press "enter" to add a + Sibling + + + + + + + + + Drag map to move + + + + + + + + + Features + + + + + + + + + Links to Sites + + + + + + + + + + + Styles + + + + + + + + + Fonts + + + + + + + + + Topic Shapes + + + + + + + + + Topic Color + + + + + + + + + Icons + + + + + + + + + + + History Changes + + + + + + + + + + + Mind Mapping + + + + + + + + + + + Share with Collegues + + + + + + + + + Online + + + + + + + + + Anyplace, Anytime + + + + + + + + + Free!!! + + + + + + + + + Productivity + + + + + + + + + + + Share your ideas + + + + + + + + + + + Brainstorming + + + + + + + + + Visual + + + + + + + + + Install In Your Server + + + + + + + + + + + Open Source + + + + + + + + + + + + Download + + + + + + + + + + + Collaborate + + + + + + + + + + + Embed + + + + + + + + + Publish + + + + + + + + + Share for Edition + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/mindplot/test/unit/samples/welcome.xml b/packages/mindplot/test/unit/samples/welcome.xml new file mode 100644 index 00000000..b570a101 --- /dev/null +++ b/packages/mindplot/test/unit/samples/welcome.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file