Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2568)

Unified Diff: bower_components/marked/test/browser/test.js

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bower_components/marked/test/browser/index.js ('k') | bower_components/marked/test/index.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bower_components/marked/test/browser/test.js
diff --git a/bower_components/marked/test/browser/test.js b/bower_components/marked/test/browser/test.js
deleted file mode 100644
index cef9e376fa210a0e77199e00e0585d5bb7e8f0ab..0000000000000000000000000000000000000000
--- a/bower_components/marked/test/browser/test.js
+++ /dev/null
@@ -1,62 +0,0 @@
-;(function() {
-
-var console = {}
- , files = __TESTS__;
-
-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) {
- Array.prototype.forEach = function(callback, context) {
- for (var i = 0; i < this.length; i++) {
- callback.call(context || null, this[i], i, obj);
- }
- };
-}
-
-if (!String.prototype.trim) {
- String.prototype.trim = function() {
- return this.replace(/^\s+|\s+$/g, '');
- };
-}
-
-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;');
-}
-
-(__MAIN__)();
-
-}).call(this);
« no previous file with comments | « bower_components/marked/test/browser/index.js ('k') | bower_components/marked/test/index.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698