summaryrefslogtreecommitdiffstats
path: root/packages/markdown/marked/test/browser/test.js
diff options
context:
space:
mode:
authorRomulus Tsai 蔡仲明 <urakagi@gmail.com>2020-05-08 09:35:11 +0800
committerRomulus Tsai 蔡仲明 <urakagi@gmail.com>2020-05-08 09:35:11 +0800
commitcfcc73724fcd394150d1b815d0a7a4c466e216b5 (patch)
treea9648255f14cd8b0e1ad8eee1f8d42337a0668bc /packages/markdown/marked/test/browser/test.js
parenta3658993128bdddd5d40f792c19281dc5eac51f5 (diff)
parent533bc045d06269dba2f42cdfe61817a1b3407974 (diff)
downloadwekan-cfcc73724fcd394150d1b815d0a7a4c466e216b5.tar.gz
wekan-cfcc73724fcd394150d1b815d0a7a4c466e216b5.tar.bz2
wekan-cfcc73724fcd394150d1b815d0a7a4c466e216b5.zip
Merge branch 'master' of https://github.com/wekan/wekan
Diffstat (limited to 'packages/markdown/marked/test/browser/test.js')
-rw-r--r--packages/markdown/marked/test/browser/test.js66
1 files changed, 0 insertions, 66 deletions
diff --git a/packages/markdown/marked/test/browser/test.js b/packages/markdown/marked/test/browser/test.js
deleted file mode 100644
index 59917dd4..00000000
--- a/packages/markdown/marked/test/browser/test.js
+++ /dev/null
@@ -1,66 +0,0 @@
-
-;(function() {
- var console = {},
- files = __TESTS__; // eslint-disable-line no-undef
-
- console.log = function(text) {
- var args = Array.prototype.slice.call(arguments, 1),
- i = 0;
-
- text = text.replace(/%\w/g, function() {
- return args[i++] || '';
- });
-
- if (window.console) window.console.log(text);
- document.body.innerHTML += '<pre>' + escape(text) + '</pre>';
- };
-
- if (!Object.keys) {
- Object.keys = function(obj) {
- var out = [],
- key;
-
- for (key in obj) {
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
- out.push(key);
- }
- }
-
- return out;
- };
- }
-
- if (!Array.prototype.forEach) {
- // eslint-disable-next-line no-extend-native
- Array.prototype.forEach = function(callback, context) {
- for (var i = 0; i < this.length; i++) {
- callback.call(context || null, this[i], i, this);
- }
- };
- }
-
- if (!String.prototype.trim) {
- // eslint-disable-next-line no-extend-native
- String.prototype.trim = function() {
- return this.replace(/^\s+|\s+$/g, '');
- };
- }
-
- // eslint-disable-next-line no-unused-vars
- function load() {
- return files;
- }
-
- function escape(html, encode) {
- return html
- .replace(!encode ? /&(?!#?\w+;)/g : /&/g, '&amp;')
- .replace(/</g, '&lt;')
- .replace(/>/g, '&gt;')
- .replace(/"/g, '&quot;')
- .replace(/'/g, '&#39;');
- }
-
- __LIBS__; // eslint-disable-line no-undef, no-unused-expressions
-
- (__MAIN__)(); // eslint-disable-line no-undef
-}).call(this);