From a6dbfcecf34d1e5d7ac39d07a394310173516d1d Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 18 Apr 2017 17:28:09 +0200 Subject: [PATCH] remove old/unused assertions --- www/assert/media/index.html | 22 ---------------------- www/assert/media/main.js | 5 ----- www/assert/pretty/index.html | 19 ------------------- www/assert/pretty/main.js | 24 ------------------------ 4 files changed, 70 deletions(-) delete mode 100644 www/assert/media/index.html delete mode 100644 www/assert/media/main.js delete mode 100644 www/assert/pretty/index.html delete mode 100644 www/assert/pretty/main.js diff --git a/www/assert/media/index.html b/www/assert/media/index.html deleted file mode 100644 index b77c80660..000000000 --- a/www/assert/media/index.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - my media thing -
-valid elements - - diff --git a/www/assert/media/main.js b/www/assert/media/main.js deleted file mode 100644 index e60fa298b..000000000 --- a/www/assert/media/main.js +++ /dev/null @@ -1,5 +0,0 @@ -define(['jquery'], function ($) { - $('media').each(function () { - window.alert("media tag selection works!"); - }); -}); diff --git a/www/assert/pretty/index.html b/www/assert/pretty/index.html deleted file mode 100644 index 01f82bdba..000000000 --- a/www/assert/pretty/index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/www/assert/pretty/main.js b/www/assert/pretty/main.js deleted file mode 100644 index 825ad03ac..000000000 --- a/www/assert/pretty/main.js +++ /dev/null @@ -1,24 +0,0 @@ -define([ - 'jquery', - '/bower_components/hyperjson/hyperjson.js' -], function ($, Hyperjson) { - var shjson = '["BODY",{"class":"cke_editable cke_editable_themed cke_contents_ltr cke_show_borders","spellcheck":"false"},[["P",{},["This is ",["STRONG",{},["CryptPad"]],", the zero knowledge realtime collaborative editor.",["BR",{},[]],"What you type here is encrypted so only people who have the link can access it.",["BR",{},[]],"Even the server cannot see what you type."]],["P",{},[["SMALL",{},[["I",{},["What you see here, what you hear here, when you leave here, let it stay here"]]]],["BR",{"type":"_moz"},[]]]]]]'; - - var hjson = JSON.parse(shjson); - - var pretty = Hyperjson.toString(hjson); - - // set the body html to the rendered hyperjson - $('body')[0].outerHTML = pretty; - - $('body') - // append the stringified-hyperjson source for reference - .append('
').append($('
', {
-            'class': 'wrap',
-        }).text(shjson))
-        // append the pretty-printed html source for reference
-        .append('
').append($('
').text(pretty));
-
-
-    // TODO write some tests to confirm whether the pretty printer is correct
-});