From 1dec4ac941bbbd9452b46a1171eaa39c7cfa1b9a Mon Sep 17 00:00:00 2001 From: mattpass Date: Sun, 26 Jan 2020 14:45:32 +0000 Subject: [PATCH] Test suite removed --- editor.php | 15 +- files.php | 4 +- lang/chinese-simplified.php | 4 +- lang/chinese-traditional.php | 2 - lang/dutch.php | 4 +- lang/english.php | 4 +- lang/french.php | 4 +- lang/german.php | 4 +- lang/italian.php | 2 - lang/norwegian.php | 2 - lang/persian.php | 2 - lang/portuguese-brazilian.php | 2 - lang/spanish.php | 2 - test/index.php | 285 ---------------------------------- test/object-watch.js | 54 ------- 15 files changed, 9 insertions(+), 381 deletions(-) delete mode 100644 test/index.php delete mode 100644 test/object-watch.js diff --git a/editor.php b/editor.php index 9390747..80f5c09 100644 --- a/editor.php +++ b/editor.php @@ -154,15 +154,6 @@ h2 {color: rgba(0,198,255,0.7)} } },1000); - -
-

-
-
-
-

:
@@ -193,12 +184,12 @@ CodeMirror.keyMap.ICEcoder = { // CodeMirror does not honor indentWithTabs = false properly when handling Tab key // Marijn said that it is by design, so we need to make a workaround of our own (function(){ - // let's back up original insertTab function which actually puts + // let's back up original insertTab function which actually puts var originalInsertTabFunction = CodeMirror.commands.insertTab; // and replace it with our own, which branches on whether our ICEcoder.indentWithTabs value is true or false CodeMirror.commands.insertTab = function(cm){ if (top.ICEcoder.indentWithTabs){ - // if it is true, then we should still put there, let's use original function + // if it is true, then we should still put there, let's use original function return originalInsertTabFunction(cm); } else { // otherwise - let's call another handler, insertSoftTab which will do the job @@ -250,7 +241,7 @@ function createNewCMInstance(num) { // Keyup window['cM'+num] .on("keyup", function(thisCM) {top.ICEcoder.cMonKeyUp(thisCM,'cM'+num)}); window['cM'+num+'diff'] .on("keyup", function(thisCM) {top.ICEcoder.cMonKeyUp(thisCM,'cM'+num+'diff')}); - + // Cursor activity window['cM'+num] .on("cursorActivity", function(thisCM) {top.ICEcoder.cMonCursorActivity(thisCM,'cM'+num)}); window['cM'+num+'diff'] .on("cursorActivity", function(thisCM) {top.ICEcoder.cMonCursorActivity(thisCM,'cM'+num+'diff')}); diff --git a/files.php b/files.php index 3831e2d..00ea4e8 100644 --- a/files.php +++ b/files.php @@ -52,8 +52,6 @@ $permColors = $thisPermVal == 777 ? 'background: #800; color: #eee' : 'color: #8 - - @@ -61,5 +59,5 @@ $permColors = $thisPermVal == 777 ? 'background: #800; color: #eee' : 'color: #8
- + \ No newline at end of file diff --git a/lang/chinese-simplified.php b/lang/chinese-simplified.php index 550c9c2..32ac7be 100644 --- a/lang/chinese-simplified.php +++ b/lang/chinese-simplified.php @@ -24,8 +24,6 @@ $text = array( "files" => "文件", "Last 10 files..." => "最后10个打开的文件:", "none" => "[none]", - "test suite" => "测试套件", - "Run unit tests" => "运行单元测试", "dev mode" => "开发模式", "Status" => "状态", "Using" => "使用", @@ -422,5 +420,5 @@ $text = array( array( "Update appears to..." => "更新似乎是成功的" ) - + ); diff --git a/lang/chinese-traditional.php b/lang/chinese-traditional.php index 912d9da..acac0ef 100644 --- a/lang/chinese-traditional.php +++ b/lang/chinese-traditional.php @@ -24,8 +24,6 @@ $text = array( "files" => "文件", "Last 10 files..." => "最後10個打開的文件:", "none" => "[none]", - "test suite" => "測試套件", - "Run unit tests" => "運行單元測試", "dev mode" => "開發模式", "Status" => "狀態", "Using" => "使用", diff --git a/lang/dutch.php b/lang/dutch.php index b82c4b2..a04a631 100644 --- a/lang/dutch.php +++ b/lang/dutch.php @@ -24,8 +24,6 @@ $text = array( "files" => "bestanden", "Last 10 files..." => "Laatste 10 geopende bestanden:", "none" => "[none]", - "test suite" => "test suite", - "Run unit tests" => "Voer unit tests uit", "dev mode" => "Ontwikkelaars modus", "Status" => "Status", "Using" => "Gebruikt", @@ -473,7 +471,7 @@ $text = array( array( "Update appears to..." => "Update succesvol uitgevoerd!" ), - + "find-in-files" => array( "Enter path to search in" => "Voer het door te zoeken pad in", diff --git a/lang/english.php b/lang/english.php index e51ff0c..41a4d2d 100644 --- a/lang/english.php +++ b/lang/english.php @@ -23,8 +23,6 @@ $text = array( "files" => "files", "Last 10 files..." => "Last 10 files opened:", "none" => "[none]", - "test suite" => "test suite", - "Run unit tests" => "Run unit tests", "dev mode" => "dev mode", "Status" => "Status", "Using" => "Using", @@ -508,7 +506,7 @@ $text = array( array( "Update appears to..." => "Update appears to be successful" ), - + "find-in-files" => array( "Enter path to search in" => "Enter path to search in", diff --git a/lang/french.php b/lang/french.php index ec73e60..0de12bb 100644 --- a/lang/french.php +++ b/lang/french.php @@ -24,8 +24,6 @@ $text = array( "files" => "Fichiers", "Last 10 files..." => "10 derniers fichiers ouverts :", "none" => "[aucun]", - "test suite" => "Suite de test", - "Run unit tests" => "Lancer les tests unit", "dev mode" => "Mode dev", "Status" => "Statuts", "Using" => "Utilise", @@ -138,7 +136,7 @@ dans lib/config__settings.php", "Enter filename to..." => "Saisissez le nom du fichier à enregistrer sur", "That file exists..." => "Ce fichier existe déjà, voulez vous l'écraser ?", "Saving" => "Sauvegardé" - ), + ), "get-branch" => array( diff --git a/lang/german.php b/lang/german.php index 1bbe7fd..132670c 100644 --- a/lang/german.php +++ b/lang/german.php @@ -24,8 +24,6 @@ $text = array( "files" => "Dateien", "Last 10 files..." => "Die letzten 10 geöffneten Dateien:", "none" => "[nichts]", - "test suite" => "Test Suite", - "Run unit tests" => "Unittest starten", "dev mode" => "Entwicklermodus", "Status" => "Status", "Using" => "Verwenden", @@ -269,7 +267,7 @@ $text = array( "found in" => "Gefunden in", "Replaced" => "Ersetzen" ), - + "plugins-manager" => array( "ICEcoder needs to..." => "ICEcoder muss neu geladen werden, damit das Plugin genutzt werden kann. Jetzt neu laden?", diff --git a/lang/italian.php b/lang/italian.php index 4ae3e73..6ffe4d4 100644 --- a/lang/italian.php +++ b/lang/italian.php @@ -23,8 +23,6 @@ $text = array( "files" => "file", "Last 10 files..." => "Ultimi 10 file aperti:", "none" => "[none]", - "test suite" => "prova suite", - "Run unit tests" => "Esegui test di unità", "dev mode" => "modalità sviluppo", "Status" => "Stato", "Using" => "Utilizzo", diff --git a/lang/norwegian.php b/lang/norwegian.php index 501539d..7832d82 100644 --- a/lang/norwegian.php +++ b/lang/norwegian.php @@ -24,8 +24,6 @@ $text = array( "files" => "filer", "Last 10 files..." => "Siste 10 åpne filer:", "none" => "[none]", - "test suite" => "test suite", - "Run unit tests" => "Kjør unit tests", "dev mode" => "utvikler modus", "Status" => "Status", "Using" => "Brukes", diff --git a/lang/persian.php b/lang/persian.php index 91a5316..ca64425 100644 --- a/lang/persian.php +++ b/lang/persian.php @@ -24,8 +24,6 @@ $text = array( "files" => "فایل ها", "Last 10 files..." => "آخرین ۱۰ فایل باز شده", "none" => "[پوچ]", - "test suite" => "تست سویت", - "Run unit tests" => "اجرای تست های واحد", "dev mode" => "حالت توسعه دهنده", "Status" => "وضعیت", "Using" => "استفاده", diff --git a/lang/portuguese-brazilian.php b/lang/portuguese-brazilian.php index e230ec1..f294578 100644 --- a/lang/portuguese-brazilian.php +++ b/lang/portuguese-brazilian.php @@ -24,8 +24,6 @@ $text = array( "files" => "arquivos", "Last 10 files..." => "últimos 10 arquivos abertos:", "none" => "[nenhum]", - "test suite" => "suíte de teste", - "Run unit tests" => "Executar testes unitãrios", "dev mode" => "modo desenv.", "Status" => "Status", "Using" => "Usando", diff --git a/lang/spanish.php b/lang/spanish.php index f47585e..a5ab52c 100644 --- a/lang/spanish.php +++ b/lang/spanish.php @@ -23,8 +23,6 @@ $text = array( "files" => "archivos", "Last 10 files..." => "Ultimos 10 archivos abiertos:", "none" => "[ninguno]", - "test suite" => "modo de pruebas", - "Run unit tests" => "Ejecutar tests unitarios", "dev mode" => "modo desarrollo", "Status" => "Estado", "Using" => "Usando", diff --git a/test/index.php b/test/index.php deleted file mode 100644 index c5d92a3..0000000 --- a/test/index.php +++ /dev/null @@ -1,285 +0,0 @@ - - - - - - -ICEcoder Test Suite - - - - - - -noCreate='FAIL Could not create test file';console.log(noCreate);unitTestResults.innerHTML = noCreate;"); -fwrite($fh, 'initial text'); -fclose($fh); -?> - - - - - - - - \ No newline at end of file diff --git a/test/object-watch.js b/test/object-watch.js deleted file mode 100644 index 62ce828..0000000 --- a/test/object-watch.js +++ /dev/null @@ -1,54 +0,0 @@ -/* - * object.watch polyfill - * - * 2012-04-03 - * - * By Eli Grey, http://eligrey.com - * Public Domain. - * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. - */ - -// object.watch -if (!Object.prototype.watch) { - Object.defineProperty(Object.prototype, "watch", { - enumerable: false - , configurable: true - , writable: false - , value: function (prop, handler) { - var - oldval = this[prop] - , newval = oldval - , getter = function () { - return newval; - } - , setter = function (val) { - oldval = newval; - return newval = handler.call(this, prop, oldval, val); - } - ; - - if (delete this[prop]) { // can't watch constants - Object.defineProperty(this, prop, { - get: getter - , set: setter - , enumerable: true - , configurable: true - }); - } - } - }); -} - -// object.unwatch -if (!Object.prototype.unwatch) { - Object.defineProperty(Object.prototype, "unwatch", { - enumerable: false - , configurable: true - , writable: false - , value: function (prop) { - var val = this[prop]; - delete this[prop]; // remove accessors - this[prop] = val; - } - }); -} \ No newline at end of file