@movable/studio-framework-test-helpers 2.39.1 → 2.40.0-redondo-beach
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +6 -5
- package/dist/index.js +7 -4
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -21008,7 +21008,8 @@ function setupApp(AppClass) {
|
|
|
21008
21008
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
21009
21009
|
|
|
21010
21010
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !construct) return false; if (construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
21011
|
-
var
|
|
21011
|
+
var TEST_CONTAINER_ID = 'testing-container';
|
|
21012
|
+
var TEST_IFRAME_DOM = "\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"keywords\" content=\"Cats and sometimes Turkeys\" />\n <meta name=\"author\" content=\"Millie\" />\n <script>MI={}; MI.options='DELETE ME!';</script>\n <style type=\"text/css\"></style>\n <base href=\"//cartridges-should-not-be-removed/\" >\n </head>\n <body style=\"margin: 8px\">\n <div id=\"purple\"><p>PURPLE</p></div>\n <div id=\"react-root\"></div>\n </body>\n </html>";
|
|
21012
21013
|
var CONTAINER_ELEMENT;
|
|
21013
21014
|
var IFRAME_ROOT;
|
|
21014
21015
|
|
|
@@ -21027,7 +21028,7 @@ function _createIframe() {
|
|
|
21027
21028
|
iframe.id = 'test-iframe';
|
|
21028
21029
|
iframe.width = '500px';
|
|
21029
21030
|
iframe.height = '300px';
|
|
21030
|
-
iframe.srcdoc =
|
|
21031
|
+
iframe.srcdoc = TEST_IFRAME_DOM;
|
|
21031
21032
|
container.appendChild(iframe);
|
|
21032
21033
|
iframe.addEventListener('load', function () {
|
|
21033
21034
|
var root = iframe.contentWindow.document.getElementById('react-root');
|
|
@@ -21058,8 +21059,8 @@ function _createTestContainer() {
|
|
|
21058
21059
|
case 0:
|
|
21059
21060
|
container = document.createElement('div');
|
|
21060
21061
|
CONTAINER_ELEMENT = container;
|
|
21061
|
-
container.classNames =
|
|
21062
|
-
container.id =
|
|
21062
|
+
container.classNames = TEST_CONTAINER_ID;
|
|
21063
|
+
container.id = TEST_CONTAINER_ID;
|
|
21063
21064
|
container.style.background = 'white';
|
|
21064
21065
|
container.style.position = 'fixed';
|
|
21065
21066
|
container.style.width = '500px';
|
|
@@ -21456,4 +21457,4 @@ var makeDynamicRichTextTag = function makeDynamicRichTextTag(dynamicProperty) {
|
|
|
21456
21457
|
})], tagOptions);
|
|
21457
21458
|
};
|
|
21458
21459
|
|
|
21459
|
-
export { makeDynamicImageTag, makeDynamicProperty, makeDynamicRichTextTag, makeImageTag, makeRichTextOp, makeRichTextTag, makeTag, makeTagOfType, makeTextTag, pauseTest, render, renderApp, renderError, returnRenderedApp, settled, setupApp, setupCropduster, setupRenderingTest, sinon$1 as sinon };
|
|
21460
|
+
export { TEST_CONTAINER_ID, TEST_IFRAME_DOM, makeDynamicImageTag, makeDynamicProperty, makeDynamicRichTextTag, makeImageTag, makeRichTextOp, makeRichTextTag, makeTag, makeTagOfType, makeTextTag, pauseTest, render, renderApp, renderError, returnRenderedApp, settled, setupApp, setupCropduster, setupRenderingTest, sinon$1 as sinon };
|
package/dist/index.js
CHANGED
|
@@ -21018,7 +21018,8 @@ function setupApp(AppClass) {
|
|
|
21018
21018
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
21019
21019
|
|
|
21020
21020
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !construct) return false; if (construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
21021
|
-
var
|
|
21021
|
+
var TEST_CONTAINER_ID = 'testing-container';
|
|
21022
|
+
var TEST_IFRAME_DOM = "\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"keywords\" content=\"Cats and sometimes Turkeys\" />\n <meta name=\"author\" content=\"Millie\" />\n <script>MI={}; MI.options='DELETE ME!';</script>\n <style type=\"text/css\"></style>\n <base href=\"//cartridges-should-not-be-removed/\" >\n </head>\n <body style=\"margin: 8px\">\n <div id=\"purple\"><p>PURPLE</p></div>\n <div id=\"react-root\"></div>\n </body>\n </html>";
|
|
21022
21023
|
var CONTAINER_ELEMENT;
|
|
21023
21024
|
var IFRAME_ROOT;
|
|
21024
21025
|
|
|
@@ -21037,7 +21038,7 @@ function _createIframe() {
|
|
|
21037
21038
|
iframe.id = 'test-iframe';
|
|
21038
21039
|
iframe.width = '500px';
|
|
21039
21040
|
iframe.height = '300px';
|
|
21040
|
-
iframe.srcdoc =
|
|
21041
|
+
iframe.srcdoc = TEST_IFRAME_DOM;
|
|
21041
21042
|
container.appendChild(iframe);
|
|
21042
21043
|
iframe.addEventListener('load', function () {
|
|
21043
21044
|
var root = iframe.contentWindow.document.getElementById('react-root');
|
|
@@ -21068,8 +21069,8 @@ function _createTestContainer() {
|
|
|
21068
21069
|
case 0:
|
|
21069
21070
|
container = document.createElement('div');
|
|
21070
21071
|
CONTAINER_ELEMENT = container;
|
|
21071
|
-
container.classNames =
|
|
21072
|
-
container.id =
|
|
21072
|
+
container.classNames = TEST_CONTAINER_ID;
|
|
21073
|
+
container.id = TEST_CONTAINER_ID;
|
|
21073
21074
|
container.style.background = 'white';
|
|
21074
21075
|
container.style.position = 'fixed';
|
|
21075
21076
|
container.style.width = '500px';
|
|
@@ -21466,6 +21467,8 @@ var makeDynamicRichTextTag = function makeDynamicRichTextTag(dynamicProperty) {
|
|
|
21466
21467
|
})], tagOptions);
|
|
21467
21468
|
};
|
|
21468
21469
|
|
|
21470
|
+
exports.TEST_CONTAINER_ID = TEST_CONTAINER_ID;
|
|
21471
|
+
exports.TEST_IFRAME_DOM = TEST_IFRAME_DOM;
|
|
21469
21472
|
exports.makeDynamicImageTag = makeDynamicImageTag;
|
|
21470
21473
|
exports.makeDynamicProperty = makeDynamicProperty;
|
|
21471
21474
|
exports.makeDynamicRichTextTag = makeDynamicRichTextTag;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@movable/studio-framework-test-helpers",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.40.0-redondo-beach",
|
|
4
4
|
"description": "A suite of test helpers for studio-framework",
|
|
5
5
|
"author": "Movable Ink",
|
|
6
6
|
"repository": "movableink/studio-framework",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"volta": {
|
|
61
61
|
"extends": "../../package.json"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "982821b947e7334c59c34609dcab01e622fbb898"
|
|
64
64
|
}
|